home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 12 / BBS in a box XII-2.iso / Files II / Prog / T / ToolsPlus 2.1.sit / Tools Plus 2.1 ƒ / Tools Plus 2.1 (C & Pascal) / Tools Plus 2.1 for C / ToolsPlus.h < prev    next >
MacBinary  |  1993-11-15  |  35.5 KB  |  [TEXT/KAHL]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: ToolsPlus.h

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Mon Nov 15 17:34:46 1993, modified Mon Nov 15 17:34:46 1993, creator Think C, type ASCII, 35598 bytes "ToolsPlus.h" , at 0x8b8e 509 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[KAHL]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 54 6f 6f 6c 73 50 | 6c 75 73 2e 68 00 00 00 |..ToolsP|lus.h...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 01 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 8b 0e 00 | 00 01 fd a9 0d b4 86 a9 |........|........|
|00000060| 0d b4 86 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 d1 86 00 00 |........|........|
|00000080| 2f 2a 20 20 54 6f 6f 6c | 73 20 50 6c 75 73 20 28 |/* Tool|s Plus (|
|00000090| 56 65 72 73 69 6f 6e 20 | 32 2e 31 29 20 54 48 49 |Version |2.1) THI|
|000000a0| 4e 4b 20 43 20 68 65 61 | 64 65 72 20 66 69 6c 65 |NK C hea|der file|
|000000b0| 0d 20 2a 20 20 43 6f 70 | 79 72 69 67 68 74 20 28 |. * Cop|yright (|
|000000c0| 43 29 20 31 39 38 39 2d | 31 39 39 33 20 57 61 74 |C) 1989-|1993 Wat|
|000000d0| 65 72 d5 73 20 45 64 67 | 65 20 53 6f 66 74 77 61 |er.s Edg|e Softwa|
|000000e0| 72 65 0d 20 2a 0d 20 2a | 20 20 54 68 69 73 20 68 |re. *. *| This h|
|000000f0| 65 61 64 65 72 20 66 69 | 6c 65 20 64 65 66 69 6e |eader fi|le defin|
|00000100| 65 73 20 61 6c 6c 20 54 | 6f 6f 6c 73 20 50 6c 75 |es all T|ools Plu|
|00000110| 73 20 63 6f 6d 70 6f 6e | 65 6e 74 73 20 28 63 6f |s compon|ents (co|
|00000120| 6e 73 74 61 6e 74 73 2c | 20 76 61 72 69 61 62 6c |nstants,| variabl|
|00000130| 65 73 20 61 6e 64 0d 20 | 2a 09 73 74 72 75 63 74 |es and. |*.struct|
|00000140| 75 72 65 73 29 2e 20 20 | 50 72 6f 67 72 61 6d 73 |ures). |Programs|
|00000150| 20 75 73 69 6e 67 20 54 | 6f 6f 6c 73 20 50 6c 75 | using T|ools Plu|
|00000160| 73 20 6d 75 73 74 20 69 | 6e 63 6c 75 64 65 20 74 |s must i|nclude t|
|00000170| 68 69 73 20 68 65 61 64 | 65 72 20 66 69 6c 65 2e |his head|er file.|
|00000180| 0d 20 2a 0d 20 2a 20 20 | 54 6f 6f 6c 73 20 50 6c |. *. * |Tools Pl|
|00000190| 75 73 20 72 65 71 75 69 | 72 65 73 20 74 68 61 74 |us requi|res that|
|000001a0| 20 79 6f 75 72 20 61 70 | 70 6c 69 63 61 74 69 6f | your ap|plicatio|
|000001b0| 6e 20 69 6e 63 6c 75 64 | 65 20 62 6f 74 68 20 54 |n includ|e both T|
|000001c0| 6f 6f 6c 73 20 50 6c 75 | 73 20 6c 69 62 72 61 72 |ools Plu|s librar|
|000001d0| 79 20 66 69 6c 65 73 3a | 0d 20 2a 20 20 20 20 20 |y files:|. * |
|000001e0| 20 20 d2 54 6f 6f 6c 73 | 50 6c 75 73 2e 4c 69 62 | .Tools|Plus.Lib|
|000001f0| 31 d3 20 61 6e 64 20 d2 | 54 6f 6f 6c 73 50 6c 75 |1. and .|ToolsPlu|
|00000200| 73 2e 4c 69 62 32 d3 0d | 20 2a 2f 0d 0d 0d 23 69 |s.Lib2..| */...#i|
|00000210| 66 6e 64 65 66 20 5f 5f | 54 6f 6f 6c 73 50 6c 75 |fndef __|ToolsPlu|
|00000220| 73 5f 5f 0d 23 64 65 66 | 69 6e 65 20 5f 5f 54 6f |s__.#def|ine __To|
|00000230| 6f 6c 73 50 6c 75 73 5f | 5f 0d 0d 0d 23 64 65 66 |olsPlus_|_...#def|
|00000240| 69 6e 65 09 09 55 73 65 | 43 6f 6c 6f 72 09 09 74 |ine..Use|Color..t|
|00000250| 72 75 65 09 09 09 2f 2a | 20 49 4e 49 54 49 41 4c |rue.../*| INITIAL|
|00000260| 49 5a 41 54 49 4f 4e 3a | 20 55 73 65 20 63 6f 6c |IZATION:| Use col|
|00000270| 6f 72 20 69 66 20 61 76 | 61 69 6c 61 62 6c 65 09 |or if av|ailable.|
|00000280| 09 2a 2f 0d 23 64 65 66 | 69 6e 65 09 09 49 67 6e |.*/.#def|ine..Ign|
|00000290| 6f 72 65 43 6f 6c 6f 72 | 09 09 66 61 6c 73 65 09 |oreColor|..false.|
|000002a0| 09 09 2f 2a 09 09 09 09 | 20 20 20 44 6f 6e 27 74 |../*....| Don't|
|000002b0| 20 75 73 65 20 63 6f 6c | 6f 72 09 09 09 09 2a 2f | use col|or....*/|
|000002c0| 0d 23 64 65 66 69 6e 65 | 09 09 64 6f 4e 6f 74 68 |.#define|..doNoth|
|000002d0| 69 6e 67 09 09 30 09 09 | 09 09 2f 2a 20 50 4f 4c |ing..0..|../* POL|
|000002e0| 4c 49 4e 47 3a 09 6e 6f | 20 65 76 65 6e 74 09 09 |LING:.no| event..|
|000002f0| 09 09 09 09 09 2a 2f 0d | 23 64 65 66 69 6e 65 09 |.....*/.|#define.|
|00000300| 09 64 6f 43 68 67 57 69 | 6e 64 6f 77 09 09 31 09 |.doChgWi|ndow..1.|
|00000310| 09 09 09 2f 2a 09 09 09 | 75 73 65 72 20 63 6c 69 |.../*...|user cli|
|00000320| 63 6b 65 64 20 69 6e 20 | 61 6e 20 69 6e 61 63 74 |cked in |an inact|
|00000330| 69 76 65 20 77 69 6e 64 | 6f 77 09 2a 2f 0d 23 64 |ive wind|ow.*/.#d|
|00000340| 65 66 69 6e 65 09 09 64 | 6f 52 65 66 72 65 73 68 |efine..d|oRefresh|
|00000350| 09 09 32 09 09 09 09 2f | 2a 09 09 09 61 20 77 69 |..2..../|*...a wi|
|00000360| 6e 64 6f 77 20 68 61 73 | 20 74 6f 20 62 65 20 72 |ndow has| to be r|
|00000370| 65 66 72 65 73 68 65 64 | 09 09 2a 2f 0d 23 64 65 |efreshed|..*/.#de|
|00000380| 66 69 6e 65 09 09 64 6f | 47 6f 41 77 61 79 09 09 |fine..do|GoAway..|
|00000390| 33 09 09 09 09 2f 2a 09 | 09 09 74 68 65 20 63 6c |3..../*.|..the cl|
|000003a0| 6f 73 65 20 62 6f 78 20 | 77 61 73 20 63 6c 69 63 |ose box |was clic|
|000003b0| 6b 65 64 09 09 09 2a 2f | 0d 23 64 65 66 69 6e 65 |ked...*/|.#define|
|000003c0| 09 09 64 6f 42 75 74 74 | 6f 6e 09 09 34 09 09 09 |..doButt|on..4...|
|000003d0| 09 2f 2a 09 09 09 62 75 | 74 74 6f 6e 20 77 61 73 |./*...bu|tton was|
|000003e0| 20 63 6c 69 63 6b 65 64 | 09 09 09 09 09 2a 2f 0d | clicked|.....*/.|
|000003f0| 23 64 65 66 69 6e 65 09 | 09 64 6f 4d 65 6e 75 09 |#define.|.doMenu.|
|00000400| 09 09 35 09 09 09 09 2f | 2a 09 09 09 6d 65 6e 75 |..5..../|*...menu|
|00000410| 20 77 61 73 20 73 65 6c | 65 63 74 65 64 09 09 09 | was sel|ected...|
|00000420| 09 09 2a 2f 0d 23 64 65 | 66 69 6e 65 09 09 64 6f |..*/.#de|fine..do|
|00000430| 4b 65 79 44 6f 77 6e 09 | 09 36 09 09 09 09 2f 2a |KeyDown.|.6..../*|
|00000440| 09 09 09 61 20 6b 65 79 | 62 6f 61 72 64 20 6b 65 |...a key|board ke|
|00000450| 79 20 77 61 73 20 70 72 | 65 73 73 65 64 09 09 09 |y was pr|essed...|
|00000460| 2a 2f 0d 23 64 65 66 69 | 6e 65 09 09 64 6f 41 75 |*/.#defi|ne..doAu|
|00000470| 74 6f 4b 65 79 09 09 37 | 09 09 09 09 2f 2a 09 09 |toKey..7|..../*..|
|00000480| 09 61 20 6b 65 79 62 6f | 61 72 64 20 6b 65 79 20 |.a keybo|ard key |
|00000490| 69 73 20 61 75 74 6f 2d | 72 65 70 65 61 74 69 6e |is auto-|repeatin|
|000004a0| 67 09 2a 2f 0d 23 64 65 | 66 69 6e 65 09 09 64 6f |g.*/.#de|fine..do|
|000004b0| 4b 65 79 55 70 09 09 09 | 38 09 09 09 09 2f 2a 09 |KeyUp...|8..../*.|
|000004c0| 09 09 61 20 6b 65 79 62 | 6f 61 72 64 20 6b 65 79 |..a keyb|oard key|
|000004d0| 20 77 61 73 20 72 65 6c | 65 61 73 65 64 09 09 09 | was rel|eased...|
|000004e0| 2a 2f 0d 23 64 65 66 69 | 6e 65 09 09 64 6f 43 6c |*/.#defi|ne..doCl|
|000004f0| 69 63 6b 46 69 65 6c 64 | 09 39 09 09 09 09 2f 2a |ickField|.9..../*|
|00000500| 09 09 09 6d 6f 75 73 65 | 20 63 6c 69 63 6b 65 64 |...mouse| clicked|
|00000510| 20 69 6e 20 69 6e 61 63 | 74 69 76 65 20 66 69 65 | in inac|tive fie|
|00000520| 6c 64 09 09 2a 2f 0d 23 | 64 65 66 69 6e 65 09 09 |ld..*/.#|define..|
|00000530| 64 6f 53 63 72 6f 6c 6c | 42 61 72 09 09 31 30 09 |doScroll|Bar..10.|
|00000540| 09 09 09 2f 2a 09 09 09 | 6d 6f 75 73 65 20 63 6c |.../*...|mouse cl|
|00000550| 69 63 6b 65 64 20 69 6e | 20 61 20 73 63 72 6f 6c |icked in| a scrol|
|00000560| 6c 20 62 61 72 09 09 2a | 2f 0d 23 64 65 66 69 6e |l bar..*|/.#defin|
|00000570| 65 09 09 64 6f 4c 69 73 | 74 42 6f 78 09 09 31 31 |e..doLis|tBox..11|
|00000580| 09 09 09 09 2f 2a 09 09 | 09 73 6f 6d 65 20 73 6f |..../*..|.some so|
|00000590| 72 74 20 6f 66 20 4c 69 | 73 74 20 42 6f 78 20 61 |rt of Li|st Box a|
|000005a0| 63 74 69 76 69 74 79 09 | 09 2a 2f 0d 23 64 65 66 |ctivity.|.*/.#def|
|000005b0| 69 6e 65 09 09 64 6f 43 | 6c 69 63 6b 09 09 09 31 |ine..doC|lick...1|
|000005c0| 32 09 09 09 09 2f 2a 09 | 09 09 6d 6f 75 73 65 20 |2..../*.|..mouse |
|000005d0| 63 6c 69 63 6b 2f 64 72 | 61 67 20 5b 31 2e 2e 33 |click/dr|ag [1..3|
|000005e0| 5d 20 09 09 09 2a 2f 0d | 23 64 65 66 69 6e 65 09 |] ...*/.|#define.|
|000005f0| 09 64 6f 43 6c 69 63 6b | 43 6f 6e 74 72 6f 6c 09 |.doClick|Control.|
|00000600| 31 30 31 09 09 09 09 2f | 2a 09 09 09 6d 6f 75 73 |101..../|*...mous|
|00000610| 65 20 63 6c 69 63 6b 65 | 64 20 69 6e 20 61 20 63 |e clicke|d in a c|
|00000620| 75 73 74 6f 6d 20 63 6f | 6e 74 72 6f 6c 09 2a 2f |ustom co|ntrol.*/|
|00000630| 0d 23 64 65 66 69 6e 65 | 09 09 64 6f 4d 61 6e 75 |.#define|..doManu|
|00000640| 61 6c 45 76 65 6e 74 09 | 31 30 32 09 09 09 09 2f |alEvent.|102..../|
|00000650| 2a 09 09 09 6d 61 6e 75 | 61 6c 6c 79 20 70 72 6f |*...manu|ally pro|
|00000660| 63 65 73 73 65 64 20 65 | 76 65 6e 74 73 09 09 09 |cessed e|vents...|
|00000670| 2a 2f 0d 23 64 65 66 69 | 6e 65 09 09 64 6f 4d 6f |*/.#defi|ne..doMo|
|00000680| 76 65 57 69 6e 64 6f 77 | 09 31 30 33 09 09 09 09 |veWindow|.103....|
|00000690| 2f 2a 09 09 09 61 20 77 | 69 6e 64 6f 77 20 77 61 |/*...a w|indow wa|
|000006a0| 73 20 64 72 61 67 67 65 | 64 20 62 79 20 75 73 65 |s dragge|d by use|
|000006b0| 72 09 09 2a 2f 0d 23 64 | 65 66 69 6e 65 09 09 64 |r..*/.#d|efine..d|
|000006c0| 6f 47 72 6f 77 57 69 6e | 64 6f 77 09 31 30 34 09 |oGrowWin|dow.104.|
|000006d0| 09 09 09 2f 2a 09 09 09 | 61 20 77 69 6e 64 6f 77 |.../*...|a window|
|000006e0| 20 77 61 73 20 22 67 72 | 6f 77 6e 22 20 62 79 20 | was "gr|own" by |
|000006f0| 75 73 65 72 09 09 2a 2f | 0d 23 64 65 66 69 6e 65 |user..*/|.#define|
|00000700| 09 09 64 6f 43 6c 69 63 | 6b 44 65 73 6b 09 09 31 |..doClic|kDesk..1|
|00000710| 30 35 09 09 09 09 2f 2a | 09 09 09 6d 6f 75 73 65 |05..../*|...mouse|
|00000720| 20 63 6c 69 63 6b 65 64 | 20 69 6e 20 74 68 65 20 | clicked| in the |
|00000730| 64 65 73 6b 20 74 6f 70 | 09 09 2a 2f 0d 23 64 65 |desk top|..*/.#de|
|00000740| 66 69 6e 65 09 09 64 6f | 5a 6f 6f 6d 57 69 6e 64 |fine..do|ZoomWind|
|00000750| 6f 77 09 31 30 36 09 09 | 09 09 2f 2a 09 09 09 7a |ow.106..|../*...z|
|00000760| 6f 6f 6d 20 62 6f 78 20 | 77 61 73 20 63 6c 69 63 |oom box |was clic|
|00000770| 6b 65 64 20 62 79 20 75 | 73 65 72 09 09 2a 2f 0d |ked by u|ser..*/.|
|00000780| 23 64 65 66 69 6e 65 09 | 09 64 6f 53 75 73 70 65 |#define.|.doSuspe|
|00000790| 6e 64 09 09 31 30 37 09 | 09 09 09 2f 2a 09 09 09 |nd..107.|.../*...|
|000007a0| 61 70 70 6c 2e 20 73 75 | 73 70 65 6e 64 65 64 20 |appl. su|spended |
|000007b0| 28 69 6e 20 62 61 63 6b | 67 72 6f 75 6e 64 29 09 |(in back|ground).|
|000007c0| 09 2a 2f 0d 23 64 65 66 | 69 6e 65 09 09 64 6f 52 |.*/.#def|ine..doR|
|000007d0| 65 73 75 6d 65 09 09 31 | 30 38 09 09 09 09 2f 2a |esume..1|08..../*|
|000007e0| 09 09 09 61 70 70 6c 2e | 20 72 65 73 75 6d 65 64 |...appl.| resumed|
|000007f0| 20 28 6e 6f 77 20 61 63 | 74 69 76 65 20 61 70 70 | (now ac|tive app|
|00000800| 6c 2e 29 09 2a 2f 0d 23 | 64 65 66 69 6e 65 09 09 |l.).*/.#|define..|
|00000810| 69 6e 43 6c 69 63 6b 31 | 09 09 31 09 09 09 09 2f |inClick1|..1..../|
|00000820| 2a 20 43 4c 49 43 4b 3a | 09 6d 6f 75 73 65 20 73 |* CLICK:|.mouse s|
|00000830| 69 6e 67 6c 65 2d 63 6c | 69 63 6b 20 63 6f 6d 70 |ingle-cl|ick comp|
|00000840| 6c 65 74 65 64 09 09 2a | 2f 0d 23 64 65 66 69 6e |leted..*|/.#defin|
|00000850| 65 09 09 69 6e 43 6c 69 | 63 6b 32 09 09 32 09 09 |e..inCli|ck2..2..|
|00000860| 09 09 2f 2a 09 09 09 6d | 6f 75 73 65 20 64 6f 75 |../*...m|ouse dou|
|00000870| 62 6c 65 2d 63 6c 69 63 | 6b 20 63 6f 6d 70 6c 65 |ble-clic|k comple|
|00000880| 74 65 64 09 09 2a 2f 0d | 23 64 65 66 69 6e 65 09 |ted..*/.|#define.|
|00000890| 09 69 6e 43 6c 69 63 6b | 33 09 09 33 09 09 09 09 |.inClick|3..3....|
|000008a0| 2f 2a 09 09 09 6d 6f 75 | 73 65 20 74 72 69 70 6c |/*...mou|se tripl|
|000008b0| 65 2d 63 6c 69 63 6b 20 | 63 6f 6d 70 6c 65 74 65 |e-click |complete|
|000008c0| 64 09 09 2a 2f 0d 23 64 | 65 66 69 6e 65 09 09 69 |d..*/.#d|efine..i|
|000008d0| 6e 43 6c 69 63 6b 31 44 | 72 61 67 09 2d 31 09 09 |nClick1D|rag.-1..|
|000008e0| 09 09 2f 2a 09 09 09 6d | 6f 75 73 65 20 73 69 6e |../*...m|ouse sin|
|000008f0| 67 6c 65 2d 63 6c 69 63 | 6b 2c 20 73 74 69 6c 6c |gle-clic|k, still|
|00000900| 20 64 72 61 67 67 69 6e | 67 09 2a 2f 0d 23 64 65 | draggin|g.*/.#de|
|00000910| 66 69 6e 65 09 09 69 6e | 43 6c 69 63 6b 32 44 72 |fine..in|Click2Dr|
|00000920| 61 67 09 2d 32 09 09 09 | 09 2f 2a 09 09 09 6d 6f |ag.-2...|./*...mo|
|00000930| 75 73 65 20 64 6f 75 62 | 6c 65 2d 63 6c 69 63 6b |use doub|le-click|
|00000940| 2c 20 73 74 69 6c 6c 20 | 64 72 61 67 67 69 6e 67 |, still |dragging|
|00000950| 09 2a 2f 0d 23 64 65 66 | 69 6e 65 09 09 69 6e 43 |.*/.#def|ine..inC|
|00000960| 6c 69 63 6b 33 44 72 61 | 67 09 2d 33 09 09 09 09 |lick3Dra|g.-3....|
|00000970| 2f 2a 09 09 09 6d 6f 75 | 73 65 20 74 72 69 70 6c |/*...mou|se tripl|
|00000980| 65 2d 63 6c 69 63 6b 2c | 20 73 74 69 6c 6c 20 64 |e-click,| still d|
|00000990| 72 61 67 67 69 6e 67 09 | 2a 2f 0d 23 64 65 66 69 |ragging.|*/.#defi|
|000009a0| 6e 65 09 09 45 6e 74 65 | 72 4b 65 79 09 09 28 63 |ne..Ente|rKey..(c|
|000009b0| 68 61 72 29 30 78 30 33 | 09 09 2f 2a 20 4b 45 59 |har)0x03|../* KEY|
|000009c0| 53 3a 09 4b 65 79 20 63 | 68 61 72 61 63 74 65 72 |S:.Key c|haracter|
|000009d0| 73 20 28 41 53 43 49 49 | 29 20 66 6f 72 20 74 68 |s (ASCII|) for th|
|000009e0| 65 20 6d 6f 73 74 09 2a | 2f 0d 23 64 65 66 69 6e |e most.*|/.#defin|
|000009f0| 65 09 09 42 61 63 6b 53 | 70 61 63 65 4b 65 79 09 |e..BackS|paceKey.|
|00000a00| 28 63 68 61 72 29 30 78 | 30 38 09 09 2f 2a 09 09 |(char)0x|08../*..|
|00000a10| 09 20 20 63 6f 6d 6d 6f | 6e 6c 79 20 65 6e 63 6f |. commo|nly enco|
|00000a20| 75 6e 74 65 72 65 64 20 | 6b 65 79 73 2e 20 20 49 |untered |keys. I|
|00000a30| 6e 09 2a 2f 0d 23 64 65 | 66 69 6e 65 09 09 54 61 |n.*/.#de|fine..Ta|
|00000a40| 62 4b 65 79 09 09 09 28 | 63 68 61 72 29 30 78 30 |bKey...(|char)0x0|
|00000a50| 39 09 09 2f 2a 09 09 09 | 20 20 73 6f 6d 65 20 63 |9../*...| some c|
|00000a60| 61 73 65 73 2c 20 73 65 | 76 65 72 61 6c 20 6b 65 |ases, se|veral ke|
|00000a70| 79 73 20 70 72 6f 64 75 | 63 65 09 2a 2f 0d 23 64 |ys produ|ce.*/.#d|
|00000a80| 65 66 69 6e 65 09 09 52 | 65 74 75 72 6e 4b 65 79 |efine..R|eturnKey|
|00000a90| 09 09 28 63 68 61 72 29 | 30 78 30 44 09 09 2f 2a |..(char)|0x0D../*|
|00000aa0| 09 09 09 20 20 74 68 65 | 20 73 61 6d 65 20 41 53 |... the| same AS|
|00000ab0| 43 49 49 20 63 68 61 72 | 61 63 74 65 72 2e 20 20 |CII char|acter. |
|00000ac0| 54 68 65 79 09 2a 2f 0d | 23 64 65 66 69 6e 65 09 |They.*/.|#define.|
|00000ad0| 09 45 73 63 43 6c 65 61 | 72 4b 65 79 09 09 28 63 |.EscClea|rKey..(c|
|00000ae0| 68 61 72 29 30 78 31 42 | 09 09 2f 2a 20 28 30 78 |har)0x1B|../* (0x|
|00000af0| 31 42 29 09 20 20 6d 61 | 79 20 62 65 20 64 69 66 |1B). ma|y be dif|
|00000b00| 66 65 72 65 6e 74 69 61 | 74 65 64 20 62 79 20 75 |ferentia|ted by u|
|00000b10| 73 69 6e 67 09 2a 2f 0d | 23 64 65 66 69 6e 65 09 |sing.*/.|#define.|
|00000b20| 09 4c 65 66 74 41 72 72 | 6f 77 4b 65 79 09 28 63 |.LeftArr|owKey.(c|
|00000b30| 68 61 72 29 30 78 31 43 | 09 09 2f 2a 20 09 09 09 |har)0x1C|../* ...|
|00000b40| 20 20 74 68 65 20 6b 65 | 79 20 63 6f 64 65 2c 20 | the ke|y code, |
|00000b50| 61 73 20 69 6e 64 69 63 | 61 74 65 64 20 62 65 6c |as indic|ated bel|
|00000b60| 6f 77 2e 09 2a 2f 0d 23 | 64 65 66 69 6e 65 09 09 |ow..*/.#|define..|
|00000b70| 52 69 67 68 74 41 72 72 | 6f 77 4b 65 79 09 28 63 |RightArr|owKey.(c|
|00000b80| 68 61 72 29 30 78 31 44 | 09 09 2f 2a 09 09 09 20 |har)0x1D|../*... |
|00000b90| 20 53 6f 6d 65 20 6b 65 | 79 73 20 61 72 65 20 61 | Some ke|ys are a|
|00000ba0| 76 61 69 6c 61 62 6c 65 | 20 6f 6e 6c 79 20 6f 6e |vailable| only on|
|00000bb0| 09 2a 2f 0d 23 64 65 66 | 69 6e 65 09 09 55 70 41 |.*/.#def|ine..UpA|
|00000bc0| 72 72 6f 77 4b 65 79 09 | 09 28 63 68 61 72 29 30 |rrowKey.|.(char)0|
|00000bd0| 78 31 45 09 09 2f 2a 09 | 09 09 20 20 61 6e 20 22 |x1E../*.|.. an "|
|00000be0| 65 78 74 65 6e 64 65 64 | 22 20 6b 65 79 62 6f 61 |extended|" keyboa|
|00000bf0| 72 64 2e 09 09 09 2a 2f | 0d 23 64 65 66 69 6e 65 |rd....*/|.#define|
|00000c00| 09 09 44 6f 77 6e 41 72 | 72 6f 77 4b 65 79 09 28 |..DownAr|rowKey.(|
|00000c10| 63 68 61 72 29 30 78 31 | 46 09 09 2f 2a 09 09 09 |char)0x1|F../*...|
|00000c20| 09 09 09 09 09 09 09 09 | 09 2a 2f 0d 23 64 65 66 |........|.*/.#def|
|00000c30| 69 6e 65 09 09 48 65 6c | 70 4b 65 79 09 09 09 28 |ine..Hel|pKey...(|
|00000c40| 63 68 61 72 29 30 78 30 | 35 09 09 2f 2a 09 09 09 |char)0x0|5../*...|
|00000c50| 09 09 09 09 09 09 09 09 | 09 2a 2f 0d 23 64 65 66 |........|.*/.#def|
|00000c60| 69 6e 65 09 09 48 6f 6d | 65 4b 65 79 09 09 09 28 |ine..Hom|eKey...(|
|00000c70| 63 68 61 72 29 30 78 30 | 31 09 09 2f 2a 09 09 09 |char)0x0|1../*...|
|00000c80| 09 09 09 09 09 09 09 09 | 09 2a 2f 0d 23 64 65 66 |........|.*/.#def|
|00000c90| 69 6e 65 09 09 44 65 6c | 65 74 65 46 77 64 4b 65 |ine..Del|eteFwdKe|
|00000ca0| 79 09 28 63 68 61 72 29 | 30 78 37 46 09 09 2f 2a |y.(char)|0x7F../*|
|00000cb0| 09 09 09 09 09 09 09 09 | 09 09 09 09 2a 2f 0d 23 |........|....*/.#|
|00000cc0| 64 65 66 69 6e 65 09 09 | 45 6e 64 4b 65 79 09 09 |define..|EndKey..|
|00000cd0| 09 28 63 68 61 72 29 30 | 78 30 34 09 09 2f 2a 09 |.(char)0|x04../*.|
|00000ce0| 09 09 09 09 09 09 09 09 | 09 09 09 2a 2f 0d 23 64 |........|...*/.#d|
|00000cf0| 65 66 69 6e 65 09 09 50 | 61 67 65 55 70 4b 65 79 |efine..P|ageUpKey|
|00000d00| 09 09 28 63 68 61 72 29 | 30 78 30 42 09 09 2f 2a |..(char)|0x0B../*|
|00000d10| 09 09 09 09 09 09 09 09 | 09 09 09 09 2a 2f 0d 23 |........|....*/.#|
|00000d20| 64 65 66 69 6e 65 09 09 | 50 61 67 65 44 6f 77 6e |define..|PageDown|
|00000d30| 4b 65 79 09 09 28 63 68 | 61 72 29 30 78 30 43 09 |Key..(ch|ar)0x0C.|
|00000d40| 09 2f 2a 09 09 09 09 09 | 09 09 09 09 09 09 09 2a |./*.....|.......*|
|00000d50| 2f 0d 23 64 65 66 69 6e | 65 09 09 46 4b 65 79 09 |/.#defin|e..FKey.|
|00000d60| 09 09 28 63 68 61 72 29 | 30 78 31 30 09 09 2f 2a |..(char)|0x10../*|
|00000d70| 20 28 30 78 31 30 29 09 | 46 75 6e 63 74 69 6f 6e | (0x10).|Function|
|00000d80| 20 6b 65 79 73 20 22 46 | 31 22 20 74 6f 20 22 46 | keys "F|1" to "F|
|00000d90| 31 35 22 09 09 09 2a 2f | 0d 23 64 65 66 69 6e 65 |15"...*/|.#define|
|00000da0| 09 09 45 73 63 4b 65 79 | 43 6f 64 65 09 09 30 78 |..EscKey|Code..0x|
|00000db0| 33 35 09 09 09 2f 2a 20 | 28 30 78 31 42 29 09 4b |35.../* |(0x1B).K|
|00000dc0| 45 59 20 43 4f 44 45 53 | 20 75 73 65 64 20 74 6f |EY CODES| used to|
|00000dd0| 20 64 69 66 66 65 72 65 | 6e 74 69 61 74 65 09 09 | differe|ntiate..|
|00000de0| 2a 2f 0d 23 64 65 66 69 | 6e 65 09 09 43 6c 65 61 |*/.#defi|ne..Clea|
|00000df0| 72 4b 65 79 43 6f 64 65 | 09 30 78 34 37 09 09 09 |rKeyCode|.0x47...|
|00000e00| 2f 2a 20 28 30 78 31 42 | 29 09 20 20 62 65 74 77 |/* (0x1B|). betw|
|00000e10| 65 65 6e 20 6b 65 79 73 | 20 77 68 69 63 68 20 70 |een keys| which p|
|00000e20| 72 6f 64 75 63 65 20 74 | 68 65 09 2a 2f 0d 23 64 |roduce t|he.*/.#d|
|00000e30| 65 66 69 6e 65 09 09 46 | 31 4b 65 79 43 6f 64 65 |efine..F|1KeyCode|
|00000e40| 09 09 30 78 37 41 09 09 | 09 2f 2a 20 28 30 78 31 |..0x7A..|./* (0x1|
|00000e50| 30 29 09 20 20 73 61 6d | 65 20 6b 65 79 20 63 68 |0). sam|e key ch|
|00000e60| 61 72 61 63 74 65 72 73 | 2e 09 09 09 09 2a 2f 0d |aracters|.....*/.|
|00000e70| 23 64 65 66 69 6e 65 09 | 09 46 32 4b 65 79 43 6f |#define.|.F2KeyCo|
|00000e80| 64 65 09 09 30 78 37 38 | 09 09 09 2f 2a 09 09 09 |de..0x78|.../*...|
|00000e90| 09 09 09 09 09 09 09 09 | 09 2a 2f 0d 23 64 65 66 |........|.*/.#def|
|00000ea0| 69 6e 65 09 09 46 33 4b | 65 79 43 6f 64 65 09 09 |ine..F3K|eyCode..|
|00000eb0| 30 78 36 33 09 09 09 2f | 2a 09 09 09 09 09 09 09 |0x63.../|*.......|
|00000ec0| 09 09 09 09 09 2a 2f 0d | 23 64 65 66 69 6e 65 09 |.....*/.|#define.|
|00000ed0| 09 46 34 4b 65 79 43 6f | 64 65 09 09 30 78 37 36 |.F4KeyCo|de..0x76|
|00000ee0| 09 09 09 2f 2a 09 09 09 | 09 09 09 09 09 09 09 09 |.../*...|........|
|00000ef0| 09 2a 2f 0d 23 64 65 66 | 69 6e 65 09 09 46 35 4b |.*/.#def|ine..F5K|
|00000f00| 65 79 43 6f 64 65 09 09 | 30 78 36 30 09 09 09 2f |eyCode..|0x60.../|
|00000f10| 2a 09 09 09 09 09 09 09 | 09 09 09 09 09 2a 2f 0d |*.......|.....*/.|
|00000f20| 23 64 65 66 69 6e 65 09 | 09 46 36 4b 65 79 43 6f |#define.|.F6KeyCo|
|00000f30| 64 65 09 09 30 78 36 31 | 09 09 09 2f 2a 09 09 09 |de..0x61|.../*...|
|00000f40| 09 09 09 09 09 09 09 09 | 09 2a 2f 0d 23 64 65 66 |........|.*/.#def|
|00000f50| 69 6e 65 09 09 46 37 4b | 65 79 43 6f 64 65 09 09 |ine..F7K|eyCode..|
|00000f60| 30 78 36 32 09 09 09 2f | 2a 09 09 09 09 09 09 09 |0x62.../|*.......|
|00000f70| 09 09 09 09 09 2a 2f 0d | 23 64 65 66 69 6e 65 09 |.....*/.|#define.|
|00000f80| 09 46 38 4b 65 79 43 6f | 64 65 09 09 30 78 36 34 |.F8KeyCo|de..0x64|
|00000f90| 09 09 09 2f 2a 09 09 09 | 09 09 09 09 09 09 09 09 |.../*...|........|
|00000fa0| 09 2a 2f 0d 23 64 65 66 | 69 6e 65 09 09 46 39 4b |.*/.#def|ine..F9K|
|00000fb0| 65 79 43 6f 64 65 09 09 | 30 78 36 35 09 09 09 2f |eyCode..|0x65.../|
|00000fc0| 2a 09 09 09 09 09 09 09 | 09 09 09 09 09 2a 2f 0d |*.......|.....*/.|
|00000fd0| 23 64 65 66 69 6e 65 09 | 09 46 31 30 4b 65 79 43 |#define.|.F10KeyC|
|00000fe0| 6f 64 65 09 09 30 78 36 | 44 09 09 09 2f 2a 09 09 |ode..0x6|D.../*..|
|00000ff0| 09 09 09 09 09 09 09 09 | 09 09 2a 2f 0d 23 64 65 |........|..*/.#de|
|00001000| 66 69 6e 65 09 09 46 31 | 31 4b 65 79 43 6f 64 65 |fine..F1|1KeyCode|
|00001010| 09 09 30 78 36 37 09 09 | 09 2f 2a 09 09 09 09 09 |..0x67..|./*.....|
|00001020| 09 09 09 09 09 09 09 2a | 2f 0d 23 64 65 66 69 6e |.......*|/.#defin|
|00001030| 65 09 09 46 31 32 4b 65 | 79 43 6f 64 65 09 09 30 |e..F12Ke|yCode..0|
|00001040| 78 36 46 09 09 09 2f 2a | 09 09 09 09 09 09 09 09 |x6F.../*|........|
|00001050| 09 09 09 09 2a 2f 0d 23 | 64 65 66 69 6e 65 09 09 |....*/.#|define..|
|00001060| 46 31 33 4b 65 79 43 6f | 64 65 09 09 30 78 36 39 |F13KeyCo|de..0x69|
|00001070| 09 09 09 2f 2a 09 09 09 | 09 09 09 09 09 09 09 09 |.../*...|........|
|00001080| 09 2a 2f 0d 23 64 65 66 | 69 6e 65 09 09 46 31 34 |.*/.#def|ine..F14|
|00001090| 4b 65 79 43 6f 64 65 09 | 09 30 78 36 42 09 09 09 |KeyCode.|.0x6B...|
|000010a0| 2f 2a 09 09 09 09 09 09 | 09 09 09 09 09 09 2a 2f |/*......|......*/|
|000010b0| 0d 23 64 65 66 69 6e 65 | 09 09 46 31 35 4b 65 79 |.#define|..F15Key|
|000010c0| 43 6f 64 65 09 09 30 78 | 37 31 09 09 09 2f 2a 09 |Code..0x|71.../*.|
|000010d0| 09 09 09 09 09 09 09 09 | 09 09 09 2a 2f 0d 23 64 |........|...*/.#d|
|000010e0| 65 66 69 6e 65 09 09 41 | 70 70 6c 65 43 68 61 72 |efine..A|ppleChar|
|000010f0| 09 09 28 63 68 61 72 29 | 30 78 31 34 09 09 2f 2a |..(char)|0x14../*|
|00001100| 20 4d 45 4e 55 20 43 48 | 41 52 53 3a 09 41 70 70 | MENU CH|ARS:.App|
|00001110| 6c 65 20 63 68 61 72 61 | 63 74 65 72 09 09 09 09 |le chara|cter....|
|00001120| 09 2a 2f 0d 23 64 65 66 | 69 6e 65 09 09 43 68 65 |.*/.#def|ine..Che|
|00001130| 63 6b 43 68 61 72 09 09 | 28 63 68 61 72 29 30 78 |ckChar..|(char)0x|
|00001140| 31 32 09 09 2f 2a 09 09 | 09 09 43 68 65 63 6b 20 |12../*..|..Check |
|00001150| 4d 61 72 6b 20 63 68 61 | 72 61 63 74 65 72 09 09 |Mark cha|racter..|
|00001160| 09 2a 2f 0d 23 64 65 66 | 69 6e 65 09 09 44 69 61 |.*/.#def|ine..Dia|
|00001170| 6d 6f 6e 64 43 68 61 72 | 09 09 28 63 68 61 72 29 |mondChar|..(char)|
|00001180| 30 78 31 33 09 09 2f 2a | 09 09 09 09 44 69 61 6d |0x13../*|....Diam|
|00001190| 6f 6e 64 20 63 68 61 72 | 61 63 74 65 72 09 09 09 |ond char|acter...|
|000011a0| 09 2a 2f 0d 23 64 65 66 | 69 6e 65 09 09 44 6f 74 |.*/.#def|ine..Dot|
|000011b0| 43 68 61 72 09 09 09 28 | 63 68 61 72 29 30 78 41 |Char...(|char)0xA|
|000011c0| 35 09 09 2f 2a 09 09 09 | 09 44 6f 74 20 28 6f 72 |5../*...|.Dot (or|
|000011d0| 20 62 75 6c 6c 65 74 29 | 20 63 68 61 72 61 63 74 | bullet)| charact|
|000011e0| 65 72 09 09 2a 2f 0d 23 | 64 65 66 69 6e 65 09 09 |er..*/.#|define..|
|000011f0| 4e 6f 43 68 61 72 09 09 | 09 28 63 68 61 72 29 30 |NoChar..|.(char)0|
|00001200| 78 30 30 09 09 2f 2a 09 | 09 09 09 6e 6f 20 63 68 |x00../*.|...no ch|
|00001210| 61 72 61 63 74 65 72 09 | 09 09 09 09 2a 2f 0d 23 |aracter.|....*/.#|
|00001220| 64 65 66 69 6e 65 09 09 | 61 72 72 6f 77 43 75 72 |define..|arrowCur|
|00001230| 73 6f 72 09 09 30 09 09 | 09 09 2f 2a 20 43 55 52 |sor..0..|../* CUR|
|00001240| 53 4f 52 53 3a 09 22 61 | 72 72 6f 77 22 20 63 75 |SORS:."a|rrow" cu|
|00001250| 72 73 6f 72 09 09 09 09 | 09 09 2a 2f 0d 23 64 65 |rsor....|..*/.#de|
|00001260| 66 69 6e 65 09 09 47 6f | 41 77 61 79 09 09 09 74 |fine..Go|Away...t|
|00001270| 72 75 65 09 09 09 2f 2a | 20 57 49 4e 44 4f 57 53 |rue.../*| WINDOWS|
|00001280| 3a 09 6e 6f 20 22 63 6c | 6f 73 65 20 62 6f 78 22 |:.no "cl|ose box"|
|00001290| 09 09 09 09 09 09 2a 2f | 0d 23 64 65 66 69 6e 65 |......*/|.#define|
|000012a0| 09 09 4e 6f 47 6f 41 77 | 61 79 09 09 66 61 6c 73 |..NoGoAw|ay..fals|
|000012b0| 65 09 09 09 2f 2a 09 09 | 09 77 69 6e 64 6f 77 20 |e.../*..|.window |
|000012c0| 68 61 73 20 61 20 22 63 | 6c 6f 73 65 20 62 6f 78 |has a "c|lose box|
|000012d0| 22 09 09 09 2a 2f 0d 23 | 64 65 66 69 6e 65 09 09 |"...*/.#|define..|
|000012e0| 4d 6f 64 61 6c 09 09 09 | 74 72 75 65 09 09 09 2f |Modal...|true.../|
|000012f0| 2a 09 09 09 77 69 6e 64 | 6f 77 20 69 73 20 22 6d |*...wind|ow is "m|
|00001300| 6f 64 61 6c 22 09 09 09 | 09 09 2a 2f 0d 23 64 65 |odal"...|..*/.#de|
|00001310| 66 69 6e 65 09 09 4e 6f | 74 4d 6f 64 61 6c 09 09 |fine..No|tModal..|
|00001320| 66 61 6c 73 65 09 09 09 | 2f 2a 09 09 09 77 69 6e |false...|/*...win|
|00001330| 64 6f 77 20 69 73 20 6e | 6f 74 20 22 6d 6f 64 61 |dow is n|ot "moda|
|00001340| 6c 09 09 09 09 2a 2f 0d | 23 64 65 66 69 6e 65 09 |l....*/.|#define.|
|00001350| 09 5a 6f 6f 6d 42 6f 78 | 09 09 09 38 09 09 09 09 |.ZoomBox|...8....|
|00001360| 2f 2a 09 09 09 7a 6f 6f | 6d 20 62 6f 78 20 61 64 |/*...zoo|m box ad|
|00001370| 64 65 64 20 74 6f 20 50 | 72 6f 63 49 44 09 09 09 |ded to P|rocID...|
|00001380| 2a 2f 0d 23 64 65 66 69 | 6e 65 09 09 44 65 66 61 |*/.#defi|ne..Defa|
|00001390| 75 6c 74 42 75 74 74 6f | 6e 09 34 09 09 09 09 2f |ultButto|n.4..../|
|000013a0| 2a 20 42 55 54 54 4f 4e | 53 3a 09 22 64 65 66 61 |* BUTTON|S:."defa|
|000013b0| 75 6c 74 22 20 66 6f 72 | 20 74 68 65 20 77 69 6e |ult" for| the win|
|000013c0| 64 6f 77 09 09 09 2a 2f | 0d 23 64 65 66 69 6e 65 |dow...*/|.#define|
|000013d0| 09 09 73 65 6c 65 63 74 | 65 64 09 09 74 72 75 65 |..select|ed..true|
|000013e0| 09 09 09 2f 2a 09 09 09 | 62 75 74 74 6f 6e 20 69 |.../*...|button i|
|000013f0| 73 20 73 65 6c 65 63 74 | 65 64 20 28 69 65 3a 20 |s select|ed (ie: |
|00001400| 63 68 65 63 6b 65 64 29 | 09 2a 2f 0d 23 64 65 66 |checked)|.*/.#def|
|00001410| 69 6e 65 09 09 6e 6f 74 | 53 65 6c 65 63 74 65 64 |ine..not|Selected|
|00001420| 09 09 66 61 6c 73 65 09 | 09 09 2f 2a 09 09 09 62 |..false.|../*...b|
|00001430| 75 74 74 6f 6e 20 69 73 | 20 6e 6f 74 20 73 65 6c |utton is| not sel|
|00001440| 65 63 74 65 64 09 09 09 | 09 2a 2f 0d 09 09 09 09 |ected...|.*/.....|
|00001450| 09 09 09 09 09 09 09 2f | 2a 20 42 55 54 54 4f 4e |......./|* BUTTON|
|00001460| 53 2c 20 4d 45 4e 55 53 | 2c 20 53 43 52 4f 4c 4c |S, MENUS|, SCROLL|
|00001470| 20 42 41 52 53 20 26 20 | 49 43 4f 4e 53 3a 09 09 | BARS & |ICONS:..|
|00001480| 09 2a 2f 0d 23 64 65 66 | 69 6e 65 09 09 65 6e 61 |.*/.#def|ine..ena|
|00001490| 62 6c 65 64 09 09 09 74 | 72 75 65 09 09 09 2f 2a |bled...t|rue.../*|
|000014a0| 09 09 09 65 6e 61 62 6c | 65 64 20 28 61 63 74 69 |...enabl|ed (acti|
|000014b0| 76 65 29 09 09 09 09 09 | 2a 2f 0d 23 64 65 66 69 |ve).....|*/.#defi|
|000014c0| 6e 65 09 09 64 69 73 61 | 62 6c 65 64 09 09 66 61 |ne..disa|bled..fa|
|000014d0| 6c 73 65 09 09 09 2f 2a | 09 09 09 64 69 73 61 62 |lse.../*|...disab|
|000014e0| 6c 65 64 20 28 64 69 6d | 2c 20 69 6e 61 63 74 69 |led (dim|, inacti|
|000014f0| 76 65 29 09 09 09 2a 2f | 0d 23 64 65 66 69 6e 65 |ve)...*/|.#define|
|00001500| 09 09 74 65 42 6f 78 4e | 6f 43 52 09 09 30 09 09 |..teBoxN|oCR..0..|
|00001510| 09 09 2f 2a 20 45 44 49 | 54 20 46 49 45 4c 44 53 |../* EDI|T FIELDS|
|00001520| 3a 09 62 6f 78 20 61 72 | 6f 75 6e 64 20 66 69 65 |:.box ar|ound fie|
|00001530| 6c 64 2c 20 6e 6f 20 43 | 52 20 61 6c 6c 6f 77 65 |ld, no C|R allowe|
|00001540| 64 09 2a 2f 0d 23 64 65 | 66 69 6e 65 09 09 74 65 |d.*/.#de|fine..te|
|00001550| 42 6f 78 43 52 09 09 09 | 31 09 09 09 09 2f 2a 09 |BoxCR...|1..../*.|
|00001560| 09 09 09 62 6f 78 20 61 | 72 6f 75 6e 64 20 66 69 |...box a|round fi|
|00001570| 65 6c 64 2c 20 43 52 20 | 61 6c 6c 6f 77 65 64 09 |eld, CR |allowed.|
|00001580| 2a 2f 0d 23 64 65 66 69 | 6e 65 09 09 74 65 4e 6f |*/.#defi|ne..teNo|
|00001590| 42 6f 78 4e 6f 43 52 09 | 09 32 09 09 09 09 2f 2a |BoxNoCR.|.2..../*|
|000015a0| 09 09 09 09 6e 6f 20 62 | 6f 78 2c 20 6e 6f 20 43 |....no b|ox, no C|
|000015b0| 52 20 61 6c 6c 6f 77 65 | 64 09 09 09 2a 2f 0d 23 |R allowe|d...*/.#|
|000015c0| 64 65 66 69 6e 65 09 09 | 74 65 4e 6f 42 6f 78 43 |define..|teNoBoxC|
|000015d0| 52 09 09 33 09 09 09 09 | 2f 2a 09 09 09 09 6e 6f |R..3....|/*....no|
|000015e0| 20 62 6f 78 2c 20 43 52 | 20 61 6c 6c 6f 77 65 64 | box, CR| allowed|
|000015f0| 09 09 09 09 2a 2f 0d 23 | 64 65 66 69 6e 65 09 09 |....*/.#|define..|
|00001600| 74 65 53 65 6c 65 63 74 | 41 6c 6c 09 09 30 09 09 |teSelect|All..0..|
|00001610| 09 09 2f 2a 20 45 44 49 | 54 20 46 49 45 4c 44 20 |../* EDI|T FIELD |
|00001620| 53 45 4c 45 43 54 49 4f | 4e 3a 20 61 6c 6c 20 6f |SELECTIO|N: all o|
|00001630| 66 20 74 65 78 74 09 09 | 09 2a 2f 0d 23 64 65 66 |f text..|.*/.#def|
|00001640| 69 6e 65 09 09 74 65 53 | 65 6c 65 63 74 53 74 61 |ine..teS|electSta|
|00001650| 72 74 09 31 09 09 09 09 | 2f 2a 09 09 09 09 09 09 |rt.1....|/*......|
|00001660| 20 62 65 67 69 6e 6e 69 | 6e 67 20 6f 66 20 74 65 | beginni|ng of te|
|00001670| 78 74 09 09 2a 2f 0d 23 | 64 65 66 69 6e 65 09 09 |xt..*/.#|define..|
|00001680| 74 65 53 65 6c 65 63 74 | 45 6e 64 09 09 32 09 09 |teSelect|End..2..|
|00001690| 09 09 2f 2a 09 09 09 09 | 09 09 20 65 6e 64 20 6f |../*....|.. end o|
|000016a0| 66 20 74 65 78 74 09 09 | 09 2a 2f 0d 23 64 65 66 |f text..|.*/.#def|
|000016b0| 69 6e 65 09 09 74 65 52 | 65 70 6c 61 63 65 09 09 |ine..teR|eplace..|
|000016c0| 74 72 75 65 09 09 09 2f | 2a 20 50 41 53 54 45 20 |true.../|* PASTE |
|000016d0| 49 4e 54 4f 20 46 49 45 | 4c 44 3a 20 72 65 70 6c |INTO FIE|LD: repl|
|000016e0| 61 63 65 20 66 69 65 6c | 64 20 63 6f 6e 74 65 6e |ace fiel|d conten|
|000016f0| 74 73 09 09 2a 2f 0d 23 | 64 65 66 69 6e 65 09 09 |ts..*/.#|define..|
|00001700| 74 65 49 6e 73 65 72 74 | 09 09 66 61 6c 73 65 09 |teInsert|..false.|
|00001710| 09 09 2f 2a 09 09 09 09 | 09 20 69 6e 73 65 72 74 |../*....|. insert|
|00001720| 20 74 65 78 74 20 69 6e | 74 6f 20 66 69 65 6c 64 | text in|to field|
|00001730| 09 09 2a 2f 0d 23 64 65 | 66 69 6e 65 09 09 4f 6b |..*/.#de|fine..Ok|
|00001740| 41 6c 74 42 75 74 09 09 | 31 09 09 09 09 2f 2a 20 |AltBut..|1..../* |
|00001750| 41 4c 45 52 54 53 3a 09 | 4f 4b 09 09 09 09 28 42 |ALERTS:.|OK....(B|
|00001760| 75 74 74 6f 6e 73 29 09 | 09 09 2a 2f 0d 23 64 65 |uttons).|..*/.#de|
|00001770| 66 69 6e 65 09 09 43 61 | 6e 41 6c 74 42 75 74 09 |fine..Ca|nAltBut.|
|00001780| 09 32 09 09 09 09 2f 2a | 09 09 09 43 61 6e 63 65 |.2..../*|...Cance|
|00001790| 6c 09 09 09 09 09 09 09 | 09 2a 2f 0d 23 64 65 66 |l.......|.*/.#def|
|000017a0| 69 6e 65 09 09 59 65 73 | 41 6c 74 42 75 74 09 09 |ine..Yes|AltBut..|
|000017b0| 33 09 09 09 09 2f 2a 09 | 09 09 59 65 73 09 09 09 |3..../*.|..Yes...|
|000017c0| 09 09 09 09 09 09 2a 2f | 0d 23 64 65 66 69 6e 65 |......*/|.#define|
|000017d0| 09 09 4e 6f 41 6c 74 42 | 75 74 09 09 34 09 09 09 |..NoAltB|ut..4...|
|000017e0| 09 2f 2a 09 09 09 4e 6f | 09 09 09 09 09 09 09 09 |./*...No|........|
|000017f0| 09 2a 2f 0d 23 64 65 66 | 69 6e 65 09 09 43 6f 6e |.*/.#def|ine..Con|
|00001800| 74 41 6c 74 42 75 74 09 | 09 35 09 09 09 09 2f 2a |tAltBut.|.5..../*|
|00001810| 09 09 09 43 6f 6e 74 69 | 6e 75 65 09 09 09 09 09 |...Conti|nue.....|
|00001820| 09 09 2a 2f 0d 23 64 65 | 66 69 6e 65 09 09 53 6b |..*/.#de|fine..Sk|
|00001830| 69 70 41 6c 74 42 75 74 | 09 09 36 09 09 09 09 2f |ipAltBut|..6..../|
|00001840| 2a 09 09 09 53 6b 69 70 | 09 09 09 09 09 09 09 09 |*...Skip|........|
|00001850| 2a 2f 0d 23 64 65 66 69 | 6e 65 09 09 51 75 69 74 |*/.#defi|ne..Quit|
|00001860| 41 6c 74 42 75 74 09 09 | 37 09 09 09 09 2f 2a 09 |AltBut..|7..../*.|
|00001870| 09 09 51 75 69 74 09 09 | 09 09 09 09 09 09 2a 2f |..Quit..|......*/|
|00001880| 0d 23 64 65 66 69 6e 65 | 09 09 4e 6f 42 75 74 74 |.#define|..NoButt|
|00001890| 6f 6e 41 6c 65 72 74 09 | 30 09 09 09 09 2f 2a 09 |onAlert.|0..../*.|
|000018a0| 09 09 4e 6f 20 62 75 74 | 74 6f 6e 73 09 09 28 43 |..No but|tons..(C|
|000018b0| 6f 6d 62 69 6e 61 74 69 | 6f 6e 73 29 09 09 2a 2f |ombinati|ons)..*/|
|000018c0| 0d 23 64 65 66 69 6e 65 | 09 09 4f 6b 41 6c 65 72 |.#define|..OkAler|
|000018d0| 74 09 09 09 31 31 31 30 | 30 09 09 09 2f 2a 09 09 |t...1110|0.../*..|
|000018e0| 09 4f 4b 20 28 64 65 66 | 61 75 6c 74 29 09 09 09 |.OK (def|ault)...|
|000018f0| 09 09 09 2a 2f 0d 23 64 | 65 66 69 6e 65 09 09 43 |...*/.#d|efine..C|
|00001900| 61 6e 41 6c 65 72 74 09 | 09 31 31 32 30 30 09 09 |anAlert.|.11200..|
|00001910| 09 2f 2a 09 09 09 43 61 | 6e 63 65 6c 20 28 64 65 |./*...Ca|ncel (de|
|00001920| 66 61 75 6c 74 29 09 09 | 09 09 09 2a 2f 0d 23 64 |fault)..|...*/.#d|
|00001930| 65 66 69 6e 65 09 09 4f | 6b 43 61 6e 41 6c 65 72 |efine..O|kCanAler|
|00001940| 74 09 09 32 32 32 31 30 | 09 09 09 2f 2a 09 09 09 |t..22210|.../*...|
|00001950| 4f 4b 20 28 64 65 66 61 | 75 6c 74 29 20 2b 20 43 |OK (defa|ult) + C|
|00001960| 61 6e 63 65 6c 09 09 09 | 09 2a 2f 0d 23 64 65 66 |ancel...|.*/.#def|
|00001970| 69 6e 65 09 09 43 61 6e | 4f 6b 41 6c 65 72 74 09 |ine..Can|OkAlert.|
|00001980| 09 32 31 32 31 30 09 09 | 09 2f 2a 09 09 09 4f 4b |.21210..|./*...OK|
|00001990| 20 2b 20 43 61 6e 63 65 | 6c 20 28 64 65 66 61 75 | + Cance|l (defau|
|000019a0| 6c 74 29 09 09 09 09 2a | 2f 0d 23 64 65 66 69 6e |lt)....*|/.#defin|
|000019b0| 65 09 09 59 65 73 4e 6f | 41 6c 65 72 74 09 09 32 |e..YesNo|Alert..2|
|000019c0| 32 34 33 30 09 09 09 2f | 2a 09 09 09 59 65 73 20 |2430.../|*...Yes |
|000019d0| 28 64 65 66 61 75 6c 74 | 29 20 2b 20 4e 6f 09 09 |(default|) + No..|
|000019e0| 09 09 09 2a 2f 0d 23 64 | 65 66 69 6e 65 09 09 4e |...*/.#d|efine..N|
|000019f0| 6f 59 65 73 41 6c 65 72 | 74 09 09 32 31 34 33 30 |oYesAler|t..21430|
|00001a00| 09 09 09 2f 2a 09 09 09 | 59 65 73 20 2b 20 4e 6f |.../*...|Yes + No|
|00001a10| 20 28 64 65 66 61 75 6c | 74 29 20 09 09 09 09 09 | (defaul|t) .....|
|00001a20| 2a 2f 0d 23 64 65 66 69 | 6e 65 09 09 59 65 73 4e |*/.#defi|ne..YesN|
|00001a30| 6f 43 61 6e 41 6c 65 72 | 74 09 33 33 32 34 33 09 |oCanAler|t.33243.|
|00001a40| 09 09 2f 2a 09 09 09 59 | 65 73 20 28 64 65 66 61 |../*...Y|es (defa|
|00001a50| 75 6c 74 29 20 2b 20 4e | 6f 20 2b 20 43 61 6e 63 |ult) + N|o + Canc|
|00001a60| 65 6c 09 09 09 2a 2f 0d | 23 64 65 66 69 6e 65 09 |el...*/.|#define.|
|00001a70| 09 4e 6f 59 65 73 43 61 | 6e 41 6c 65 72 74 09 33 |.NoYesCa|nAlert.3|
|00001a80| 32 32 34 33 09 09 09 2f | 2a 09 09 09 59 65 73 20 |2243.../|*...Yes |
|00001a90| 2b 20 4e 6f 20 28 64 65 | 66 61 75 6c 74 29 20 2b |+ No (de|fault) +|
|00001aa0| 20 43 61 6e 63 65 6c 09 | 09 09 2a 2f 0d 23 64 65 | Cancel.|..*/.#de|
|00001ab0| 66 69 6e 65 09 09 4e 6f | 49 63 6f 6e 09 09 09 2d |fine..No|Icon...-|
|00001ac0| 33 32 37 36 38 09 09 09 | 2f 2a 20 49 43 4f 4e 53 |32768...|/* ICONS|
|00001ad0| 3a 09 4e 6f 20 69 63 6f | 6e 20 75 73 65 64 09 09 |:.No ico|n used..|
|00001ae0| 09 09 09 09 2a 2f 0d 23 | 64 65 66 69 6e 65 09 09 |....*/.#|define..|
|00001af0| 6f 6e 09 09 09 09 74 72 | 75 65 09 09 09 2f 2a 20 |on....tr|ue.../* |
|00001b00| 4d 49 53 43 45 4c 4c 41 | 4e 45 4f 55 53 3a 09 09 |MISCELLA|NEOUS:..|
|00001b10| 09 09 09 09 09 09 2a 2f | 0d 23 64 65 66 69 6e 65 |......*/|.#define|
|00001b20| 09 09 6f 66 66 09 09 09 | 09 66 61 6c 73 65 09 09 |..off...|.false..|
|00001b30| 09 2f 2a 09 09 09 09 09 | 09 09 09 09 09 09 09 2a |./*.....|.......*|
|00001b40| 2f 0d 23 64 65 66 69 6e | 65 09 09 5a 6f 6f 6d 41 |/.#defin|e..ZoomA|
|00001b50| 63 72 6f 73 73 09 09 30 | 09 09 09 09 2f 2a 20 5a |cross..0|..../* Z|
|00001b60| 4f 4f 4d 20 4c 49 4e 45 | 53 3a 20 74 72 61 6e 73 |OOM LINE|S: trans|
|00001b70| 69 74 69 6f 6e 61 6c 09 | 09 09 09 09 09 2a 2f 0d |itional.|.....*/.|
|00001b80| 23 64 65 66 69 6e 65 09 | 09 5a 6f 6f 6d 49 6e 09 |#define.|.ZoomIn.|
|00001b90| 09 09 2d 31 09 09 09 09 | 2f 2a 09 09 09 20 20 20 |..-1....|/*... |
|00001ba0| 7a 6f 6f 6d 20 69 6e 77 | 61 72 64 20 28 66 75 72 |zoom inw|ard (fur|
|00001bb0| 74 68 65 72 20 61 77 61 | 79 29 09 09 2a 2f 0d 23 |ther awa|y)..*/.#|
|00001bc0| 64 65 66 69 6e 65 09 09 | 5a 6f 6f 6d 4f 75 74 09 |define..|ZoomOut.|
|00001bd0| 09 09 31 09 09 09 09 2f | 2a 09 09 09 20 20 20 7a |..1..../|*... z|
|00001be0| 6f 6f 6d 20 6f 75 74 77 | 61 72 64 20 28 6e 65 61 |oom outw|ard (nea|
|00001bf0| 72 65 72 29 09 09 09 2a | 2f 0d 23 64 65 66 69 6e |rer)...*|/.#defin|
|00001c00| 65 09 09 6e 6f 6e 65 09 | 09 09 30 09 09 09 09 2f |e..none.|..0..../|
|00001c10| 2a 20 75 73 65 64 20 70 | 72 69 6d 61 72 69 6c 79 |* used p|rimarily|
|00001c20| 20 66 6f 72 20 70 6f 6c | 6c 69 6e 67 09 09 09 09 | for pol|ling....|
|00001c30| 09 2a 2f 0d 0d 0d 0d 0d | 0d 2f 2a 20 2d 20 2d 20 |.*/.....|./* - - |
|00001c40| 2d 20 2d 20 2d 20 2d 20 | 54 68 65 73 65 20 72 65 |- - - - |These re|
|00001c50| 63 6f 72 64 20 22 74 79 | 70 65 73 22 20 61 72 65 |cord "ty|pes" are|
|00001c60| 20 75 73 65 64 20 66 6f | 72 20 69 6e 66 6f 72 6d | used fo|r inform|
|00001c70| 61 74 69 6f 6e 20 74 72 | 61 6e 73 66 65 72 20 62 |ation tr|ansfer b|
|00001c80| 65 74 77 65 65 6e 20 2d | 20 2d 20 2d 20 2d 20 2d |etween -| - - - -|
|00001c90| 20 2d 20 2d 09 2a 2f 0d | 2f 2a 09 09 20 09 09 09 | - -.*/.|/*.. ...|
|00001ca0| 09 79 6f 75 72 20 61 70 | 70 6c 69 63 61 74 69 6f |.your ap|plicatio|
|00001cb0| 6e 20 61 6e 64 20 54 6f | 6f 6c 73 20 50 6c 75 73 |n and To|ols Plus|
|00001cc0| 20 6c 69 62 72 61 72 69 | 65 73 2e 09 09 09 09 09 | librari|es......|
|00001cd0| 09 09 2a 2f 0d 0d 2f 2a | 3d 20 50 6f 6c 6c 69 6e |..*/../*|= Pollin|
|00001ce0| 67 20 72 65 63 6f 72 64 | 27 73 20 22 65 76 65 6e |g record|'s "even|
|00001cf0| 74 20 6d 6f 64 69 66 69 | 65 72 73 22 20 69 6e 66 |t modifi|ers" inf|
|00001d00| 6f 2a 2f 0d 20 20 75 6e | 69 6f 6e 20 54 50 4d 6f |o*/. un|ion TPMo|
|00001d10| 64 69 66 69 65 72 73 52 | 65 63 20 7b 09 09 09 09 |difiersR|ec {....|
|00001d20| 09 2f 2a 54 68 69 73 20 | 76 61 72 69 61 62 6c 65 |./*This |variable|
|00001d30| 20 72 65 63 6f 72 64 20 | 63 6f 6e 74 61 69 6e 73 | record |contains|
|00001d40| 20 61 6e 20 65 76 65 6e | 74 27 73 09 09 2a 2f 0d | an even|t's..*/.|
|00001d50| 09 09 09 09 09 09 09 09 | 09 09 09 2f 2a 09 22 6d |........|.../*."m|
|00001d60| 6f 64 69 66 69 65 72 73 | 22 20 69 6e 20 32 20 66 |odifiers|" in 2 f|
|00001d70| 6f 72 6d 61 74 73 c9 09 | 09 09 09 09 2a 2f 0d 09 |ormats..|....*/..|
|00001d80| 09 09 09 09 09 09 09 09 | 09 09 2f 2a 09 a5 20 4d |........|../*.. M|
|00001d90| 61 63 69 6e 74 6f 73 68 | 20 45 76 65 6e 74 3a 09 |acintosh| Event:.|
|00001da0| 09 09 09 09 09 09 2a 2f | 0d 09 09 69 6e 74 20 4e |......*/|...int N|
|00001db0| 75 6d 3b 09 09 09 09 09 | 09 09 2f 2a 09 09 69 6e |um;.....|../*..in|
|00001dc0| 74 65 67 65 72 20 28 62 | 69 74 20 6f 70 65 72 61 |teger (b|it opera|
|00001dd0| 74 69 6f 6e 73 20 72 65 | 71 75 69 72 65 64 29 09 |tions re|quired).|
|00001de0| 09 2a 2f 0d 09 09 73 74 | 72 75 63 74 20 7b 09 09 |.*/...st|ruct {..|
|00001df0| 09 09 09 09 09 2f 2a 09 | a5 20 4d 6f 64 69 66 69 |...../*.|. Modifi|
|00001e00| 65 72 20 69 6e 74 65 67 | 65 72 20 70 61 72 73 65 |er integ|er parse|
|00001e10| 64 20 69 6e 74 6f 20 63 | 6f 6d 70 6f 6e 65 6e 74 |d into c|omponent|
|00001e20| 73 3a 09 2a 2f 0d 09 09 | 09 75 6e 73 69 67 6e 65 |s:.*/...|.unsigne|
|00001e30| 64 20 69 6e 74 20 62 69 | 74 31 35 20 3a 31 3b 09 |d int bi|t15 :1;.|
|00001e40| 09 09 2f 2a 09 09 28 72 | 65 73 65 72 76 65 64 20 |../*..(r|eserved |
|00001e50| 62 69 74 29 09 09 09 09 | 09 09 09 2a 2f 0d 09 09 |bit)....|...*/...|
|00001e60| 09 75 6e 73 69 67 6e 65 | 64 20 69 6e 74 20 62 69 |.unsigne|d int bi|
|00001e70| 74 31 34 20 3a 31 3b 09 | 09 09 2f 2a 09 09 28 72 |t14 :1;.|../*..(r|
|00001e80| 65 73 65 72 76 65 64 20 | 62 69 74 29 09 09 09 09 |eserved |bit)....|
|00001e90| 09 09 09 2a 2f 0d 09 09 | 09 75 6e 73 69 67 6e 65 |...*/...|.unsigne|
|00001ea0| 64 20 69 6e 74 20 62 69 | 74 31 33 20 3a 31 3b 09 |d int bi|t13 :1;.|
|00001eb0| 09 09 2f 2a 09 09 28 72 | 65 73 65 72 76 65 64 20 |../*..(r|eserved |
|00001ec0| 62 69 74 29 09 09 09 09 | 09 09 09 2a 2f 0d 09 09 |bit)....|...*/...|
|00001ed0| 09 75 6e 73 69 67 6e 65 | 64 20 69 6e 74 20 43 6f |.unsigne|d int Co|
|00001ee0| 6e 74 72 6f 6c 4b 65 79 | 20 3a 31 3b 09 09 2f 2a |ntrolKey| :1;../*|
|00001ef0| 09 09 43 6f 6e 74 72 6f | 6c 20 6b 65 79 20 77 61 |..Contro|l key wa|
|00001f00| 73 20 64 6f 77 6e 20 61 | 74 20 65 76 65 6e 74 20 |s down a|t event |
|00001f10| 28 3d 31 29 09 09 2a 2f | 0d 09 09 09 75 6e 73 69 |(=1)..*/|....unsi|
|00001f20| 67 6e 65 64 20 69 6e 74 | 20 4f 70 74 69 6f 6e 4b |gned int| OptionK|
|00001f30| 65 79 20 3a 31 3b 09 09 | 2f 2a 09 09 4f 70 74 69 |ey :1;..|/*..Opti|
|00001f40| 6f 6e 20 6b 65 79 20 77 | 61 73 20 64 6f 77 6e 20 |on key w|as down |
|00001f50| 61 74 20 65 76 65 6e 74 | 20 28 3d 31 29 09 09 2a |at event| (=1)..*|
|00001f60| 2f 0d 09 09 09 75 6e 73 | 69 67 6e 65 64 20 69 6e |/....uns|igned in|
|00001f70| 74 20 43 61 70 73 4c 6f | 63 6b 20 3a 31 3b 09 09 |t CapsLo|ck :1;..|
|00001f80| 2f 2a 09 09 43 61 70 73 | 20 4c 6f 63 6b 20 77 61 |/*..Caps| Lock wa|
|00001f90| 73 20 64 6f 77 6e 20 61 | 74 20 65 76 65 6e 74 20 |s down a|t event |
|00001fa0| 28 3d 31 29 09 09 2a 2f | 0d 09 09 09 75 6e 73 69 |(=1)..*/|....unsi|
|00001fb0| 67 6e 65 64 20 69 6e 74 | 20 53 68 69 66 74 4b 65 |gned int| ShiftKe|
|00001fc0| 79 20 3a 31 3b 09 09 2f | 2a 09 09 53 68 69 66 74 |y :1;../|*..Shift|
|00001fd0| 20 6b 65 79 20 77 61 73 | 20 64 6f 77 6e 20 61 74 | key was| down at|
|00001fe0| 20 65 76 65 6e 74 20 28 | 3d 31 29 09 09 2a 2f 0d | event (|=1)..*/.|
|00001ff0| 09 09 09 75 6e 73 69 67 | 6e 65 64 20 69 6e 74 20 |...unsig|ned int |
|00002000| 43 6d 64 4b 65 79 20 3a | 31 3b 09 09 09 2f 2a 09 |CmdKey :|1;.../*.|
|00002010| 09 43 6f 6d 6d 61 6e 64 | 20 6b 65 79 20 77 61 73 |.Command| key was|
|00002020| 20 64 6f 77 6e 20 61 74 | 20 65 76 65 6e 74 20 28 | down at| event (|
|00002030| 3d 31 29 09 09 2a 2f 0d | 09 09 09 75 6e 73 69 67 |=1)..*/.|...unsig|
|00002040| 6e 65 64 20 69 6e 74 20 | 4d 6f 75 73 65 55 70 20 |ned int |MouseUp |
|00002050| 3a 31 3b 09 09 2f 2a 09 | 09 4d 6f 75 73 65 20 62 |:1;../*.|.Mouse b|
|00002060| 75 74 74 6f 6e 20 77 61 | 73 20 55 50 20 61 74 20 |utton wa|s UP at |
|00002070| 65 76 65 6e 74 20 28 3d | 31 29 09 09 2a 2f 0d 09 |event (=|1)..*/..|
|00002080| 09 09 75 6e 73 69 67 6e | 65 64 20 69 6e 74 20 62 |..unsign|ed int b|
|00002090| 69 74 36 20 3a 31 3b 09 | 09 09 2f 2a 09 09 28 72 |it6 :1;.|../*..(r|
|000020a0| 65 73 65 72 76 65 64 20 | 62 69 74 29 09 09 09 09 |eserved |bit)....|
|000020b0| 09 09 09 2a 2f 0d 09 09 | 09 75 6e 73 69 67 6e 65 |...*/...|.unsigne|
|000020c0| 64 20 69 6e 74 20 62 69 | 74 35 20 3a 31 3b 09 09 |d int bi|t5 :1;..|
|000020d0| 09 2f 2a 09 09 28 72 65 | 73 65 72 76 65 64 20 62 |./*..(re|served b|
|000020e0| 69 74 29 09 09 09 09 09 | 09 09 2a 2f 0d 09 09 09 |it).....|..*/....|
|000020f0| 75 6e 73 69 67 6e 65 64 | 20 69 6e 74 20 62 69 74 |unsigned| int bit|
|00002100| 34 20 3a 31 3b 09 09 09 | 2f 2a 09 09 28 72 65 73 |4 :1;...|/*..(res|
|00002110| 65 72 76 65 64 20 62 69 | 74 29 09 09 09 09 09 09 |erved bi|t)......|
|00002120| 09 2a 2f 0d 09 09 09 75 | 6e 73 69 67 6e 65 64 20 |.*/....u|nsigned |
|00002130| 69 6e 74 20 62 69 74 33 | 20 3a 31 3b 09 09 09 2f |int bit3| :1;.../|
|00002140| 2a 09 09 28 72 65 73 65 | 72 76 65 64 20 62 69 74 |*..(rese|rved bit|
|00002150| 29 09 09 09 09 09 09 09 | 2a 2f 0d 09 09 09 75 6e |).......|*/....un|
|00002160| 73 69 67 6e 65 64 20 69 | 6e 74 20 62 69 74 32 20 |signed i|nt bit2 |
|00002170| 3a 31 3b 09 09 09 2f 2a | 09 09 28 72 65 73 65 72 |:1;.../*|..(reser|
|00002180| 76 65 64 20 62 69 74 29 | 09 09 09 09 09 09 09 2a |ved bit)|.......*|
|00002190| 2f 0d 09 09 09 75 6e 73 | 69 67 6e 65 64 20 69 6e |/....uns|igned in|
|000021a0| 74 20 62 69 74 31 20 3a | 31 3b 09 09 09 2f 2a 09 |t bit1 :|1;.../*.|
|000021b0| 09 28 72 65 73 65 72 76 | 65 64 20 62 69 74 29 09 |.(reserv|ed bit).|
|000021c0| 09 09 09 09 09 09 2a 2f | 0d 09 09 09 75 6e 73 69 |......*/|....unsi|
|000021d0| 67 6e 65 64 20 69 6e 74 | 20 62 69 74 30 20 3a 31 |gned int| bit0 :1|
|000021e0| 3b 09 09 09 2f 2a 09 09 | 28 72 65 73 65 72 76 65 |;.../*..|(reserve|
|000021f0| 64 20 62 69 74 29 09 09 | 09 09 09 09 09 2a 2f 0d |d bit)..|.....*/.|
|00002200| 09 09 7d 20 42 69 74 73 | 3b 09 09 09 09 09 09 09 |..} Bits|;.......|
|00002210| 09 2f 2a 09 09 09 09 09 | 09 09 09 09 09 09 09 2a |./*.....|.......*|
|00002220| 2f 0d 09 7d 3b 0d 09 74 | 79 70 65 64 65 66 20 75 |/..};..t|ypedef u|
|00002230| 6e 69 6f 6e 20 54 50 4d | 6f 64 69 66 69 65 72 73 |nion TPM|odifiers|
|00002240| 52 65 63 20 54 50 4d 6f | 64 69 66 69 65 72 73 52 |Rec TPMo|difiersR|
|00002250| 65 63 3b 0d 2f 2a 3d 20 | 50 6f 6c 6c 69 6e 67 20 |ec;./*= |Polling |
|00002260| 72 65 63 6f 72 64 27 73 | 20 22 62 75 74 74 6f 6e |record's| "button|
|00002270| 22 20 69 6e 66 6f 2a 2f | 0d 20 20 09 73 74 72 75 |" info*/|. .stru|
|00002280| 63 74 20 54 50 50 6f 6c | 6c 42 75 74 74 6f 6e 52 |ct TPPol|lButtonR|
|00002290| 65 63 20 7b 0d 09 09 69 | 6e 74 20 4e 75 6d 3b 09 |ec {...i|nt Num;.|
|000022a0| 09 09 09 09 09 09 2f 2a | 42 75 74 74 6f 6e 20 6e |....../*|Button n|
|000022b0| 75 6d 62 65 72 09 09 09 | 09 09 09 09 09 09 2a 2f |umber...|......*/|
|000022c0| 0d 09 09 42 6f 6f 6c 65 | 61 6e 20 44 6f 75 62 6c |...Boole|an Doubl|
|000022d0| 65 43 6c 69 63 6b 3b 09 | 09 09 09 2f 2a 44 69 64 |eClick;.|.../*Did|
|000022e0| 20 61 20 64 6f 75 62 6c | 65 2d 63 6c 69 63 6b 20 | a doubl|e-click |
|000022f0| 6f 63 63 75 72 3f 09 09 | 09 09 09 09 2a 2f 0d 09 |occur?..|....*/..|
|00002300| 7d 3b 0d 09 74 79 70 65 | 64 65 66 20 73 74 72 75 |};..type|def stru|
|00002310| 63 74 20 54 50 50 6f 6c | 6c 42 75 74 74 6f 6e 52 |ct TPPol|lButtonR|
|00002320| 65 63 20 54 50 50 6f 6c | 6c 42 75 74 74 6f 6e 52 |ec TPPol|lButtonR|
|00002330| 65 63 3b 0d 2f 2a 3d 20 | 50 6f 6c 6c 69 6e 67 20 |ec;./*= |Polling |
|00002340| 72 65 63 6f 72 64 27 73 | 20 22 73 63 72 6f 6c 6c |record's| "scroll|
|00002350| 20 62 61 72 22 20 69 6e | 66 6f 2a 2f 0d 20 20 09 | bar" in|fo*/. .|
|00002360| 73 74 72 75 63 74 20 54 | 50 50 6f 6c 6c 53 63 72 |struct T|PPollScr|
|00002370| 6f 6c 6c 42 61 72 52 65 | 63 20 7b 0d 09 09 69 6e |ollBarRe|c {...in|
|00002380| 74 20 4e 75 6d 3b 09 09 | 09 09 09 09 09 2f 2a 53 |t Num;..|...../*S|
|00002390| 63 72 6f 6c 6c 20 62 61 | 72 20 6e 75 6d 62 65 72 |croll ba|r number|
|000023a0| 09 09 09 09 09 09 09 09 | 2a 2f 0d 09 09 69 6e 74 |........|*/...int|
|000023b0| 20 50 61 72 74 3b 09 09 | 09 09 09 09 09 2f 2a 53 | Part;..|...../*S|
|000023c0| 63 72 6f 6c 6c 20 62 61 | 72 27 73 20 70 61 72 74 |croll ba|r's part|
|000023d0| 09 09 09 09 09 09 09 09 | 2a 2f 0d 09 7d 3b 0d 09 |........|*/..};..|
|000023e0| 74 79 70 65 64 65 66 20 | 73 74 72 75 63 74 20 54 |typedef |struct T|
|000023f0| 50 50 6f 6c 6c 53 63 72 | 6f 6c 6c 42 61 72 52 65 |PPollScr|ollBarRe|
|00002400| 63 20 54 50 50 6f 6c 6c | 53 63 72 6f 6c 6c 42 61 |c TPPoll|ScrollBa|
|00002410| 72 52 65 63 3b 0d 2f 2a | 3d 20 50 6f 6c 6c 69 6e |rRec;./*|= Pollin|
|00002420| 67 20 72 65 63 6f 72 64 | 27 73 20 22 6c 69 73 74 |g record|'s "list|
|00002430| 20 62 6f 78 22 20 69 6e | 66 6f 2a 2f 0d 09 73 74 | box" in|fo*/..st|
|00002440| 72 75 63 74 20 54 50 50 | 6f 6c 6c 4c 69 73 74 42 |ruct TPP|ollListB|
|00002450| 6f 78 52 65 63 20 7b 0d | 09 09 69 6e 74 20 4e 75 |oxRec {.|..int Nu|
|00002460| 6d 3b 09 09 09 09 09 09 | 09 2f 2a 4c 69 73 74 20 |m;......|./*List |
|00002470| 62 6f 78 20 6e 75 6d 62 | 65 72 09 09 09 09 09 09 |box numb|er......|
|00002480| 09 09 2a 2f 0d 09 09 42 | 6f 6f 6c 65 61 6e 20 44 |..*/...B|oolean D|
|00002490| 6f 75 62 6c 65 43 6c 69 | 63 6b 3b 09 09 09 09 2f |oubleCli|ck;..../|
|000024a0| 2a 44 69 64 20 61 20 64 | 6f 75 62 6c 65 2d 63 6c |*Did a d|ouble-cl|
|000024b0| 69 63 6b 20 6f 63 63 75 | 72 3f 09 09 09 09 09 09 |ick occu|r?......|
|000024c0| 2a 2f 0d 09 7d 3b 0d 09 | 74 79 70 65 64 65 66 20 |*/..};..|typedef |
|000024d0| 73 74 72 75 63 74 20 54 | 50 50 6f 6c 6c 4c 69 73 |struct T|PPollLis|
|000024e0| 74 42 6f 78 52 65 63 20 | 54 50 50 6f 6c 6c 4c 69 |tBoxRec |TPPollLi|
|000024f0| 73 74 42 6f 78 52 65 63 | 3b 0d 2f 2a 3d 20 50 6f |stBoxRec|;./*= Po|
|00002500| 6c 6c 69 6e 67 20 72 65 | 63 6f 72 64 27 73 20 22 |lling re|cord's "|
|00002510| 6d 65 6e 75 22 20 69 6e | 66 6f 2a 2f 0d 09 73 74 |menu" in|fo*/..st|
|00002520| 72 75 63 74 20 54 50 50 | 6f 6c 6c 4d 65 6e 75 52 |ruct TPP|ollMenuR|
|00002530| 65 63 20 7b 0d 09 09 69 | 6e 74 20 4e 75 6d 3b 09 |ec {...i|nt Num;.|
|00002540| 09 09 09 09 09 09 2f 2a | 4d 65 6e 75 20 6e 75 6d |....../*|Menu num|
|00002550| 62 65 72 09 09 09 09 09 | 09 09 09 09 2a 2f 0d 09 |ber.....|....*/..|
|00002560| 09 69 6e 74 20 49 74 65 | 6d 3b 09 09 09 09 09 09 |.int Ite|m;......|
|00002570| 09 2f 2a 4d 65 6e 75 20 | 69 74 65 6d 20 6e 75 6d |./*Menu |item num|
|00002580| 62 65 72 09 09 09 09 09 | 09 09 09 2a 2f 0d 09 7d |ber.....|...*/..}|
|00002590| 3b 0d 09 74 79 70 65 64 | 65 66 20 73 74 72 75 63 |;..typed|ef struc|
|000025a0| 74 20 54 50 50 6f 6c 6c | 4d 65 6e 75 52 65 63 20 |t TPPoll|MenuRec |
|000025b0| 54 50 50 6f 6c 6c 4d 65 | 6e 75 52 65 63 3b 0d 2f |TPPollMe|nuRec;./|
|000025c0| 2a 3d 20 50 6f 6c 6c 69 | 6e 67 20 72 65 63 6f 72 |*= Polli|ng recor|
|000025d0| 64 27 73 20 22 6b 65 79 | 2d 73 74 72 6f 6b 65 22 |d's "key|-stroke"|
|000025e0| 20 69 6e 66 6f 2a 2f 0d | 09 73 74 72 75 63 74 20 | info*/.|.struct |
|000025f0| 54 50 50 6f 6c 6c 4b 65 | 79 52 65 63 20 7b 0d 09 |TPPollKe|yRec {..|
|00002600| 09 69 6e 74 20 43 6f 64 | 65 3b 09 09 09 09 09 09 |.int Cod|e;......|
|00002610| 09 2f 2a 4c 6f 67 69 63 | 61 6c 20 6b 65 79 20 6e |./*Logic|al key n|
|00002620| 75 6d 62 65 72 20 6f 66 | 20 74 68 65 20 74 79 70 |umber of| the typ|
|00002630| 65 64 20 6b 65 79 09 09 | 09 2a 2f 0d 09 09 63 68 |ed key..|.*/...ch|
|00002640| 61 72 20 43 68 72 3b 09 | 09 09 09 09 09 09 2f 2a |ar Chr;.|....../*|
|00002650| 41 53 43 49 49 20 63 68 | 61 72 61 63 74 65 72 20 |ASCII ch|aracter |
|00002660| 67 65 6e 65 72 61 74 65 | 64 20 62 79 20 74 79 70 |generate|d by typ|
|00002670| 65 64 20 6b 65 79 09 09 | 2a 2f 0d 09 09 42 79 74 |ed key..|*/...Byt|
|00002680| 65 20 55 6e 75 73 65 64 | 3b 09 09 09 09 09 09 2f |e Unused|;....../|
|00002690| 2a 20 28 72 65 73 65 72 | 76 65 64 20 62 79 74 65 |* (reser|ved byte|
|000026a0| 29 09 09 09 09 09 09 09 | 09 2a 2f 09 09 09 09 0d |).......|.*/.....|
|000026b0| 09 7d 3b 0d 09 74 79 70 | 65 64 65 66 20 73 74 72 |.};..typ|edef str|
|000026c0| 75 63 74 20 54 50 50 6f | 6c 6c 4b 65 79 52 65 63 |uct TPPo|llKeyRec|
|000026d0| 20 54 50 50 6f 6c 6c 4b | 65 79 52 65 63 3b 0d 2f | TPPollK|eyRec;./|
|000026e0| 2a 3d 20 50 6f 6c 6c 69 | 6e 67 20 72 65 63 6f 72 |*= Polli|ng recor|
|000026f0| 64 27 73 20 22 6d 6f 75 | 73 65 20 6c 6f 63 61 74 |d's "mou|se locat|
|00002700| 69 6f 6e 20 61 6e 64 20 | 74 69 6d 65 22 20 69 6e |ion and |time" in|
|00002710| 66 6f 20 66 6f 72 20 6d | 6f 75 73 65 2d 64 6f 77 |fo for m|ouse-dow|
|00002720| 6e 20 61 6e 64 20 6d 6f | 75 73 65 2d 75 70 20 65 |n and mo|use-up e|
|00002730| 76 65 6e 74 73 2a 2f 0d | 09 73 74 72 75 63 74 20 |vents*/.|.struct |
|00002740| 54 50 50 6f 6c 6c 4d 6f | 75 73 65 50 6f 69 6e 74 |TPPollMo|usePoint|
|00002750| 52 65 63 20 7b 0d 09 09 | 50 6f 69 6e 74 20 57 68 |Rec {...|Point Wh|
|00002760| 65 72 65 3b 09 09 09 09 | 09 09 2f 2a 45 76 65 6e |ere;....|../*Even|
|00002770| 74 20 6c 6f 63 61 74 69 | 6f 6e 20 69 6e 20 6c 6f |t locati|on in lo|
|00002780| 63 61 6c 20 63 6f 2d 6f | 72 64 69 6e 61 74 65 73 |cal co-o|rdinates|
|00002790| 09 09 09 2a 2f 0d 09 09 | 6c 6f 6e 67 20 57 68 65 |...*/...|long Whe|
|000027a0| 6e 3b 09 09 09 09 09 09 | 09 2f 2a 45 76 65 6e 74 |n;......|./*Event|
|000027b0| 20 74 69 6d 65 20 69 6e | 20 63 6c 6f 63 6b 20 74 | time in| clock t|
|000027c0| 69 63 6b 73 20 66 72 6f | 6d 20 62 6f 6f 74 20 28 |icks fro|m boot (|
|000027d0| 31 2f 36 30 20 73 65 63 | 29 2a 2f 0d 09 09 54 50 |1/60 sec|)*/...TP|
|000027e0| 4d 6f 64 69 66 69 65 72 | 73 52 65 63 20 4d 6f 64 |Modifier|sRec Mod|
|000027f0| 69 66 69 65 72 73 3b 09 | 09 09 2f 2a 45 76 65 6e |ifiers;.|../*Even|
|00002800| 74 20 6d 6f 64 69 66 69 | 65 72 73 09 09 09 09 09 |t modifi|ers.....|
|00002810| 09 09 09 2a 2f 0d 09 7d | 3b 0d 09 74 79 70 65 64 |...*/..}|;..typed|
|00002820| 65 66 20 73 74 72 75 63 | 74 20 54 50 50 6f 6c 6c |ef struc|t TPPoll|
|00002830| 4d 6f 75 73 65 50 6f 69 | 6e 74 52 65 63 20 54 50 |MousePoi|ntRec TP|
|00002840| 50 6f 6c 6c 4d 6f 75 73 | 65 50 6f 69 6e 74 52 65 |PollMous|ePointRe|
|00002850| 63 3b 0d 2f 2a 3d 20 50 | 6f 6c 6c 69 6e 67 20 72 |c;./*= P|olling r|
|00002860| 65 63 6f 72 64 27 73 20 | 22 6d 6f 75 73 65 20 63 |ecord's |"mouse c|
|00002870| 6c 69 63 6b 2f 64 72 61 | 67 22 20 69 6e 66 6f 2a |lick/dra|g" info*|
|00002880| 2f 0d 09 73 74 72 75 63 | 74 20 54 50 50 6f 6c 6c |/..struc|t TPPoll|
|00002890| 4d 6f 75 73 65 52 65 63 | 20 7b 0d 09 09 69 6e 74 |MouseRec| {...int|
|000028a0| 20 57 68 61 74 3b 09 09 | 09 09 09 09 09 2f 2a 57 | What;..|...../*W|
|000028b0| 68 61 74 20 74 79 70 65 | 20 6f 66 20 6d 6f 75 73 |hat type| of mous|
|000028c0| 65 20 65 76 65 6e 74 3f | 20 28 63 6c 69 63 6b 20 |e event?| (click |
|000028d0| 6f 72 20 64 72 61 67 29 | 09 09 2a 2f 0d 09 09 54 |or drag)|..*/...T|
|000028e0| 50 50 6f 6c 6c 4d 6f 75 | 73 65 50 6f 69 6e 74 52 |PPollMou|sePointR|
|000028f0| 65 63 20 44 6f 77 6e 5b | 33 5d 3b 09 09 2f 2a 57 |ec Down[|3];../*W|
|00002900| 68 65 72 65 20 26 20 77 | 68 65 6e 20 64 69 64 20 |here & w|hen did |
|00002910| 74 68 65 20 6d 6f 75 73 | 65 2d 64 6f 77 6e 20 6f |the mous|e-down o|
|00002920| 63 63 75 72 09 09 09 2a | 2f 0d 09 09 54 50 50 6f |ccur...*|/...TPPo|
|00002930| 6c 6c 4d 6f 75 73 65 50 | 6f 69 6e 74 52 65 63 20 |llMouseP|ointRec |
|00002940| 55 70 5b 33 5d 3b 09 09 | 09 2f 2a 57 68 65 72 65 |Up[3];..|./*Where|
|00002950| 20 26 20 77 68 65 6e 20 | 64 69 64 20 74 68 65 20 | & when |did the |
|00002960| 6d 6f 75 73 65 2d 75 70 | 20 6f 63 63 75 72 09 09 |mouse-up| occur..|
|00002970| 09 2a 2f 0d 09 09 50 6f | 69 6e 74 20 57 68 65 72 |.*/...Po|int Wher|
|00002980| 65 3b 09 09 09 09 09 09 | 2f 2a 43 75 72 72 65 6e |e;......|/*Curren|
|00002990| 74 20 6d 6f 75 73 65 20 | 6c 6f 63 61 74 69 6f 6e |t mouse |location|
|000029a0| 20 69 6e 20 6c 6f 63 61 | 6c 20 63 6f 2d 6f 72 64 | in loca|l co-ord|
|000029b0| 69 6e 61 74 65 73 09 2a | 2f 0d 09 7d 3b 0d 09 74 |inates.*|/..};..t|
|000029c0| 79 70 65 64 65 66 20 73 | 74 72 75 63 74 20 54 50 |ypedef s|truct TP|
|000029d0| 50 6f 6c 6c 4d 6f 75 73 | 65 52 65 63 20 54 50 50 |PollMous|eRec TPP|
|000029e0| 6f 6c 6c 4d 6f 75 73 65 | 52 65 63 3b 0d 2f 2a 3d |ollMouse|Rec;./*=|
|000029f0| 20 50 4f 4c 4c 49 4e 47 | 20 72 65 63 6f 72 64 20 | POLLING| record |
|00002a00| 66 6f 72 20 54 6f 6f 6c | 73 20 50 6c 75 73 2a 2f |for Tool|s Plus*/|
|00002a10| 0d 09 73 74 72 75 63 74 | 20 54 50 50 6f 6c 6c 52 |..struct| TPPollR|
|00002a20| 65 63 6f 72 64 20 7b 09 | 09 09 09 09 2f 2a 54 6f |ecord {.|..../*To|
|00002a30| 6f 6c 73 20 50 6c 75 73 | 20 50 6f 6c 6c 69 6e 67 |ols Plus| Polling|
|00002a40| 20 72 65 63 6f 72 64 c9 | 09 09 09 09 09 2a 2f 0d | record.|.....*/.|
|00002a50| 09 09 69 6e 74 20 57 68 | 61 74 3b 09 09 09 09 09 |..int Wh|at;.....|
|00002a60| 09 09 2f 2a 57 68 61 74 | 20 74 79 70 65 20 6f 66 |../*What| type of|
|00002a70| 20 65 76 65 6e 74 20 68 | 61 73 20 6f 63 63 75 72 | event h|as occur|
|00002a80| 72 65 64 3f 09 09 09 09 | 2a 2f 0d 09 09 69 6e 74 |red?....|*/...int|
|00002a90| 20 57 69 6e 64 6f 77 3b | 09 09 09 09 09 09 09 2f | Window;|......./|
|00002aa0| 2a 57 69 6e 64 6f 77 20 | 6e 75 6d 62 65 72 20 6f |*Window |number o|
|00002ab0| 66 20 74 68 65 20 65 76 | 65 6e 74 09 09 09 09 09 |f the ev|ent.....|
|00002ac0| 2a 2f 0d 09 09 54 50 50 | 6f 6c 6c 42 75 74 74 6f |*/...TPP|ollButto|
|00002ad0| 6e 52 65 63 20 42 75 74 | 74 6f 6e 3b 09 09 09 09 |nRec But|ton;....|
|00002ae0| 2f 2a 42 75 74 74 6f 6e | 20 6e 75 6d 62 65 72 2f |/*Button| number/|
|00002af0| 64 6f 75 62 6c 65 2d 63 | 6c 69 63 6b 20 73 74 61 |double-c|lick sta|
|00002b00| 74 75 73 09 09 09 09 2a | 2f 0d 09 09 54 50 50 6f |tus....*|/...TPPo|
|00002b10| 6c 6c 53 63 72 6f 6c 6c | 42 61 72 52 65 63 20 53 |llScroll|BarRec S|
|00002b20| 63 72 6f 6c 6c 42 61 72 | 3b 09 09 2f 2a 53 63 72 |crollBar|;../*Scr|
|00002b30| 6f 6c 6c 20 62 61 72 20 | 6e 75 6d 62 65 72 2f 73 |oll bar |number/s|
|00002b40| 63 72 6f 6c 6c 20 62 61 | 72 20 70 61 72 74 09 09 |croll ba|r part..|
|00002b50| 09 09 2a 2f 0d 09 09 69 | 6e 74 20 46 69 65 6c 64 |..*/...i|nt Field|
|00002b60| 3b 09 09 09 09 09 09 09 | 2f 2a 46 69 65 6c 64 20 |;.......|/*Field |
|00002b70| 6e 75 6d 62 65 72 20 6f | 66 20 65 76 65 6e 74 09 |number o|f event.|
|00002b80| 09 09 09 09 09 09 2a 2f | 0d 09 09 54 50 50 6f 6c |......*/|...TPPol|
|00002b90| 6c 4c 69 73 74 42 6f 78 | 52 65 63 20 4c 69 73 74 |lListBox|Rec List|
|00002ba0| 42 6f 78 3b 09 09 09 2f | 2a 4c 69 73 74 20 62 6f |Box;.../|*List bo|
|00002bb0| 78 20 6e 75 6d 62 65 72 | 2f 64 6f 75 62 6c 65 2d |x number|/double-|
|00002bc0| 63 6c 69 63 6b 20 73 74 | 61 74 75 73 09 09 09 2a |click st|atus...*|
|00002bd0| 2f 0d 09 09 54 50 50 6f | 6c 6c 4d 65 6e 75 52 65 |/...TPPo|llMenuRe|
|00002be0| 63 20 4d 65 6e 75 3b 09 | 09 09 09 09 2f 2a 4d 65 |c Menu;.|..../*Me|
|00002bf0| 6e 75 20 6e 75 6d 62 65 | 72 2f 6d 65 6e 75 20 69 |nu numbe|r/menu i|
|00002c00| 74 65 6d 20 6f 66 20 61 | 6e 20 65 76 65 6e 74 09 |tem of a|n event.|
|00002c10| 09 09 09 2a 2f 0d 09 09 | 54 50 50 6f 6c 6c 4b 65 |...*/...|TPPollKe|
|00002c20| 79 52 65 63 20 4b 65 79 | 3b 09 09 09 09 09 2f 2a |yRec Key|;...../*|
|00002c30| 4c 6f 67 69 63 61 6c 20 | 6b 65 79 20 6e 75 6d 62 |Logical |key numb|
|00002c40| 65 72 20 26 20 63 68 61 | 72 61 63 74 65 72 20 6f |er & cha|racter o|
|00002c50| 66 20 74 79 70 65 64 20 | 6b 65 79 09 2a 2f 0d 09 |f typed |key.*/..|
|00002c60| 09 54 50 50 6f 6c 6c 4d | 6f 75 73 65 52 65 63 20 |.TPPollM|ouseRec |
|00002c70| 4d 6f 75 73 65 3b 09 09 | 09 09 2f 2a 43 6c 69 63 |Mouse;..|../*Clic|
|00002c80| 6b 2f 64 72 61 67 20 69 | 6e 66 6f 3a 20 5b 31 2e |k/drag i|nfo: [1.|
|00002c90| 2e 33 5d 20 77 68 65 72 | 65 20 26 20 77 68 65 6e |.3] wher|e & when|
|00002ca0| 09 09 09 2a 2f 0d 09 09 | 54 50 4d 6f 64 69 66 69 |...*/...|TPModifi|
|00002cb0| 65 72 73 52 65 63 20 4d | 6f 64 69 66 69 65 72 73 |ersRec M|odifiers|
|00002cc0| 3b 09 09 09 2f 2a 4d 6f | 64 69 66 69 65 72 20 66 |;.../*Mo|difier f|
|00002cd0| 6c 61 67 73 09 09 09 09 | 09 09 09 09 2a 2f 0d 09 |lags....|....*/..|
|00002ce0| 09 45 76 65 6e 74 52 65 | 63 6f 72 64 20 45 76 65 |.EventRe|cord Eve|
|00002cf0| 6e 74 3b 09 09 09 09 09 | 2f 2a 4d 61 63 69 6e 74 |nt;.....|/*Macint|
|00002d00| 6f 73 68 20 54 6f 6f 6c | 62 6f 78 20 45 76 65 6e |osh Tool|box Even|
|00002d10| 74 20 28 72 61 77 29 09 | 09 09 09 09 2a 2f 0d 09 |t (raw).|....*/..|
|00002d20| 7d 3b 0d 09 74 79 70 65 | 64 65 66 20 73 74 72 75 |};..type|def stru|
|00002d30| 63 74 20 54 50 50 6f 6c | 6c 52 65 63 6f 72 64 20 |ct TPPol|lRecord |
|00002d40| 54 50 50 6f 6c 6c 52 65 | 63 6f 72 64 3b 0d 09 74 |TPPollRe|cord;..t|
|00002d50| 79 70 65 64 65 66 20 54 | 50 50 6f 6c 6c 52 65 63 |ypedef T|PPollRec|
|00002d60| 6f 72 64 20 2a 54 50 50 | 6f 6c 6c 50 6f 69 6e 74 |ord *TPP|ollPoint|
|00002d70| 65 72 3b 09 2f 2a 50 6f | 69 6e 74 65 72 20 74 6f |er;./*Po|inter to|
|00002d80| 20 61 20 50 6f 6c 6c 69 | 6e 67 20 72 65 63 6f 72 | a Polli|ng recor|
|00002d90| 64 09 09 09 09 09 2a 2f | 0d 0d 0d 2f 2a 3d 20 57 |d.....*/|.../*= W|
|00002da0| 49 4e 44 4f 57 20 73 74 | 61 74 75 73 20 69 6e 66 |INDOW st|atus inf|
|00002db0| 6f 72 6d 61 74 69 6f 6e | 2a 2f 0d 09 73 74 72 75 |ormation|*/..stru|
|00002dc0| 63 74 20 54 50 57 69 6e | 64 6f 77 53 74 61 74 75 |ct TPWin|dowStatu|
|00002dd0| 73 20 7b 0d 09 09 42 6f | 6f 6c 65 61 6e 20 4f 70 |s {...Bo|olean Op|
|00002de0| 65 6e 3b 09 09 09 09 09 | 09 2f 2a 49 73 20 74 68 |en;.....|./*Is th|
|00002df0| 65 20 77 69 6e 64 6f 77 | 20 6f 70 65 6e 3f 09 09 |e window| open?..|
|00002e00| 09 09 09 09 09 2a 2f 0d | 09 09 42 6f 6f 6c 65 61 |.....*/.|..Boolea|
|00002e10| 6e 20 41 63 74 69 76 65 | 3b 09 09 09 09 09 09 2f |n Active|;....../|
|00002e20| 2a 49 73 20 74 68 69 73 | 20 74 68 65 20 61 63 74 |*Is this| the act|
|00002e30| 69 76 65 20 77 69 6e 64 | 6f 77 3f 09 09 09 09 09 |ive wind|ow?.....|
|00002e40| 2a 2f 0d 09 09 42 6f 6f | 6c 65 61 6e 20 43 75 72 |*/...Boo|lean Cur|
|00002e50| 72 65 6e 74 3b 09 09 09 | 09 09 2f 2a 49 73 20 74 |rent;...|../*Is t|
|00002e60| 68 69 73 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |his the |current |
|00002e70| 77 69 6e 64 6f 77 3f 09 | 09 09 09 09 2a 2f 0d 09 |window?.|....*/..|
|00002e80| 09 42 6f 6f 6c 65 61 6e | 20 46 72 6f 6e 74 3b 09 |.Boolean| Front;.|
|00002e90| 09 09 09 09 09 2f 2a 49 | 73 20 74 68 69 73 20 74 |...../*I|s this t|
|00002ea0| 68 65 20 66 72 6f 6e 74 | 20 6d 6f 73 74 20 54 6f |he front| most To|
|00002eb0| 6f 6c 73 20 50 6c 75 73 | 20 77 69 6e 64 6f 77 3f |ols Plus| window?|
|00002ec0| 09 09 2a 2f 0d 09 09 09 | 09 09 09 09 09 09 09 09 |..*/....|........|
|00002ed0| 2f 2a 09 28 77 68 69 63 | 68 20 6d 61 79 20 62 65 |/*.(whic|h may be|
|00002ee0| 20 69 6e 61 63 74 69 76 | 65 29 09 09 09 09 09 09 | inactiv|e)......|
|00002ef0| 2a 2f 0d 09 09 50 6f 69 | 6e 74 20 53 69 7a 65 3b |*/...Poi|nt Size;|
|00002f00| 09 09 09 09 09 09 09 2f | 2a 53 69 7a 65 20 69 6e |......./|*Size in|
|00002f10| 20 70 69 78 65 6c 73 20 | 28 2e 68 3d 68 6f 72 69 | pixels |(.h=hori|
|00002f20| 7a 6f 6e 74 61 6c 2c 20 | 2e 76 3d 76 65 72 74 69 |zontal, |.v=verti|
|00002f30| 63 61 6c 29 09 2a 2f 0d | 09 09 50 6f 69 6e 74 20 |cal).*/.|..Point |
|00002f40| 57 68 65 72 65 3b 09 09 | 09 09 09 09 2f 2a 4c 6f |Where;..|..../*Lo|
|00002f50| 63 61 74 69 6f 6e 20 6f | 66 20 74 6f 70 2d 6c 65 |cation o|f top-le|
|00002f60| 66 74 20 63 6f 72 6e 65 | 72 20 69 6e 20 67 6c 6f |ft corne|r in glo|
|00002f70| 62 61 6c 20 63 6f 2d 6f | 72 64 73 09 2a 2f 0d 09 |bal co-o|rds.*/..|
|00002f80| 7d 3b 0d 09 74 79 70 65 | 64 65 66 20 73 74 72 75 |};..type|def stru|
|00002f90| 63 74 20 54 50 57 69 6e | 64 6f 77 53 74 61 74 75 |ct TPWin|dowStatu|
|00002fa0| 73 20 54 50 57 69 6e 64 | 6f 77 53 74 61 74 75 73 |s TPWind|owStatus|
|00002fb0| 3b 0d 0d 0d 2f 2a 3d 20 | 43 6f 6c 6f 72 20 50 65 |;.../*= |Color Pe|
|00002fc0| 6e 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 2a 2f 0d |n inform|ation*/.|
|00002fd0| 09 73 74 72 75 63 74 20 | 43 6f 6c 6f 72 50 65 6e |.struct |ColorPen|
|00002fe0| 53 74 61 74 65 20 7b 09 | 09 09 09 09 2f 2a 43 6f |State {.|..../*Co|
|00002ff0| 6c 6f 72 20 65 71 75 69 | 76 61 6c 65 6e 74 20 66 |lor equi|valent f|
|00003000| 6f 72 20 61 20 27 50 65 | 6e 53 74 61 74 65 27 20 |or a 'Pe|nState' |
|00003010| 72 65 63 6f 72 64 2e 09 | 09 2a 2f 0d 09 09 50 65 |record..|.*/...Pe|
|00003020| 6e 53 74 61 74 65 20 50 | 65 6e 53 74 61 74 65 3b |nState P|enState;|
|00003030| 09 09 09 09 09 2f 2a 09 | 54 68 69 73 20 72 65 63 |...../*.|This rec|
|00003040| 6f 72 64 20 61 6c 73 6f | 20 73 74 6f 72 65 73 20 |ord also| stores |
|00003050| 61 64 64 69 74 69 6f 6e | 61 6c 20 76 61 6c 75 65 |addition|al value|
|00003060| 73 09 2a 2f 0d 09 09 52 | 47 42 43 6f 6c 6f 72 20 |s.*/...R|GBColor |
|00003070| 46 6f 72 65 67 72 6f 75 | 6e 64 43 6f 6c 6f 72 3b |Foregrou|ndColor;|
|00003080| 09 09 09 2f 2a 09 66 6f | 72 20 74 68 65 20 77 69 |.../*.fo|r the wi|
|00003090| 6e 64 6f 77 27 73 20 66 | 6f 72 65 67 72 6f 75 6e |ndow's f|oregroun|
|000030a0| 64 20 61 6e 64 20 62 61 | 63 6b 67 72 6f 75 6e 64 |d and ba|ckground|
|000030b0| 09 2a 2f 0d 09 09 52 47 | 42 43 6f 6c 6f 72 20 42 |.*/...RG|BColor B|
|000030c0| 61 63 6b 67 72 6f 75 6e | 64 43 6f 6c 6f 72 3b 09 |ackgroun|dColor;.|
|000030d0| 09 09 2f 2a 09 63 6f 6c | 6f 72 73 2e 09 09 09 09 |../*.col|ors.....|
|000030e0| 09 09 09 09 09 09 2a 2f | 0d 09 7d 3b 0d 09 74 79 |......*/|..};..ty|
|000030f0| 70 65 64 65 66 20 73 74 | 72 75 63 74 20 43 6f 6c |pedef st|ruct Col|
|00003100| 6f 72 50 65 6e 53 74 61 | 74 65 20 43 6f 6c 6f 72 |orPenSta|te Color|
|00003110| 50 65 6e 53 74 61 74 65 | 3b 0d 0d 0d 0d 0d 0d 0d |PenState|;.......|
|00003120| 23 69 66 64 65 66 20 5f | 5f 63 70 6c 75 73 70 6c |#ifdef _|_cpluspl|
|00003130| 75 73 0d 65 78 74 65 72 | 6e 20 22 43 22 20 7b 0d |us.exter|n "C" {.|
|00003140| 23 65 6e 64 69 66 0d 0d | 2f 2a 3d 3d 3d 3d 3d 3d |#endif..|/*======|
|00003150| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003160| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003170| 3d 3d 20 49 20 4e 20 49 | 20 54 20 49 20 41 20 4c |== I N I| T I A L|
|00003180| 20 49 20 5a 20 41 20 54 | 20 49 20 4f 20 4e 20 3d | I Z A T| I O N =|
|00003190| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000031a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000031b0| 3d 3d 3d 3d 3d 3d 3d 09 | 2a 2f 0d 2f 2a 49 6e 69 |=======.|*/./*Ini|
|000031c0| 74 69 61 6c 69 7a 65 20 | 54 6f 6f 6c 73 20 50 6c |tialize |Tools Pl|
|000031d0| 75 73 2a 2f 0d 09 70 61 | 73 63 61 6c 20 42 6f 6f |us*/..pa|scal Boo|
|000031e0| 6c 65 61 6e 20 49 6e 69 | 74 54 6f 6f 6c 73 50 6c |lean Ini|tToolsPl|
|000031f0| 75 73 20 28 69 6e 74 20 | 4d 6f 72 65 48 61 6e 64 |us (int |MoreHand|
|00003200| 6c 65 73 2c 09 09 09 09 | 2f 2a 4e 75 6d 62 65 72 |les,....|/*Number|
|00003210| 20 6f 66 20 4d 6f 72 65 | 4d 61 73 74 65 72 73 20 | of More|Masters |
|00003220| 69 6e 69 74 69 61 6c 69 | 7a 69 6e 67 20 63 79 63 |initiali|zing cyc|
|00003230| 6c 65 73 09 09 2a 2f 0d | 09 09 09 09 09 09 09 09 |les..*/.|........|
|00003240| 09 69 6e 74 20 4d 61 78 | 57 69 6e 64 6f 77 73 2c |.int Max|Windows,|
|00003250| 09 09 09 09 2f 2a 4d 61 | 78 69 6d 75 6d 20 6e 75 |..../*Ma|ximum nu|
|00003260| 6d 62 65 72 20 6f 66 20 | 77 69 6e 64 6f 77 73 20 |mber of |windows |
|00003270| 72 65 71 75 69 72 65 64 | 09 09 09 2a 2f 0d 09 09 |required|...*/...|
|00003280| 09 09 09 09 09 09 09 42 | 6f 6f 6c 65 61 6e 20 55 |.......B|oolean U|
|00003290| 73 65 43 6f 6c 6f 72 46 | 6c 61 67 20 09 09 2f 2a |seColorF|lag ../*|
|000032a0| 53 68 6f 75 6c 64 20 43 | 6f 6c 6f 72 20 51 75 69 |Should C|olor Qui|
|000032b0| 63 6b 44 72 61 77 20 62 | 65 20 75 73 65 64 20 69 |ckDraw b|e used i|
|000032c0| 66 20 61 76 61 69 6c 61 | 62 6c 65 3f 09 2a 2f 0d |f availa|ble?.*/.|
|000032d0| 09 09 09 09 09 09 09 09 | 09 29 3b 09 09 09 09 09 |........|.);.....|
|000032e0| 09 09 2f 2a 20 3d 20 57 | 61 73 20 69 6e 69 74 69 |../* = W|as initi|
|000032f0| 61 6c 69 7a 61 74 69 6f | 6e 20 73 75 63 63 65 73 |alizatio|n succes|
|00003300| 73 66 75 6c 3f 09 09 09 | 09 2a 2f 0d 0d 0d 0d 2f |sful?...|.*/..../|
|00003310| 2a 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |*=======|========|
|00003320| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003330| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003340| 20 57 20 49 20 4e 20 44 | 20 4f 20 57 20 53 20 3d | W I N D| O W S =|
|00003350| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003360| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00003370| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 09 2a |========|======.*|
|00003380| 2f 0d 2f 2a 4f 70 65 6e | 20 61 20 77 69 6e 64 6f |/./*Open| a windo|
|00003390| 77 20 61 6e 64 20 6d 61 | 6b 65 20 69 74 20 61 63 |w and ma|ke it ac|
|000033a0| 74 69 76 65 2a 2f 0d 09 | 70 61 73 63 61 6c 20 76 |tive*/..|pascal v|
|000033b0| 6f 69 64 20 57 69 6e 64 | 6f 77 4f 70 65 6e 20 28 |oid Wind|owOpen (|
|000033c0| 69 6e 74 20 57 69 6e 64 | 6f 77 2c 09 09 09 09 09 |int Wind|ow,.....|
|000033d0| 09 09 2f 2a 57 69 6e 64 | 6f 77 20 6e 75 6d 62 65 |../*Wind|ow numbe|
|000033e0| 72 09 09 09 09 09 09 09 | 09 09 2a 2f 0d 09 09 09 |r.......|..*/....|
|000033f0| 09 09 09 09 09 09 69 6e | 74 20 6c 65 66 74 2c 09 |......in|t left,.|
|00003400| 09 09 09 09 2f 2a 57 69 | 6e 64 6f 77 27 73 20 63 |..../*Wi|ndow's c|
|00003410| 6f 2d 6f 72 64 69 6e 61 | 74 65 73 20 28 67 6c 6f |o-ordina|tes (glo|
|00003420| 62 61 6c 29 09 09 09 09 | 2a 2f 0d 09 09 09 09 09 |bal)....|*/......|
|00003430| 09 09 09 09 69 6e 74 20 | 74 6f 70 2c 09 09 09 09 |....int |top,....|
|00003440| 09 2f 2a 09 09 09 09 09 | 09 09 09 09 09 09 09 2a |./*.....|.......*|
|00003450| 2f 0d 09 09 09 09 09 09 | 09 09 09 69 6e 74 20 72 |/.......|...int r|
|00003460| 69 67 68 74 2c 09 09 09 | 09 09 2f 2a 09 09 09 09 |ight,...|../*....|
|00003470| 09 09 09 09 09 09 09 09 | 2a 2f 0d 09 09 09 09 09 |........|*/......|
|00003480| 09 09 09 09 69 6e 74 20 | 62 6f 74 74 6f 6d 2c 09 |....int |bottom,.|
|00003490| 09 09 09 09 2f 2a 09 09 | 09 09 09 09 09 09 09 09 |..../*..|........|
|000034a0| 09 09 2a 2f 0d 09 09 09 | 09 09 09 09 09 09 53 74 |..*/....|......St|
|000034b0| 72 32 35 35 20 54 69 74 | 6c 65 2c 09 09 09 09 2f |r255 Tit|le,..../|
|000034c0| 2a 57 69 6e 64 6f 77 27 | 73 20 74 69 74 6c 65 20 |*Window'|s title |
|000034d0| 28 69 66 20 61 70 70 6c | 69 63 61 62 6c 65 29 09 |(if appl|icable).|
|000034e0| 09 09 09 2a 2f 0d 09 09 | 09 09 09 09 09 09 09 69 |...*/...|.......i|
|000034f0| 6e 74 20 70 72 6f 63 49 | 44 2c 09 09 09 09 09 2f |nt procI|D,...../|
|00003500| 2a 57 69 6e 64 6f 77 20 | 64 65 66 69 6e 69 74 69 |*Window |definiti|
|00003510| 6f 6e 20 49 44 09 09 09 | 09 09 09 09 2a 2f 0d 09 |on ID...|....*/..|
|00003520| 09 09 09 09 09 09 09 09 | 42 6f 6f 6c 65 61 6e 20 |........|Boolean |
|00003530| 67 6f 41 77 61 79 46 6c | 61 67 2c 09 09 09 2f 2a |goAwayFl|ag,.../*|
|00003540| 49 6e 63 6c 75 64 65 20 | 43 6c 6f 73 65 20 42 6f |Include |Close Bo|
|00003550| 78 3f 09 09 09 09 09 09 | 09 2a 2f 0d 09 09 09 09 |x?......|.*/.....|
|00003560| 09 09 09 09 09 42 6f 6f | 6c 65 61 6e 20 6d 6f 64 |.....Boo|lean mod|
|00003570| 61 6c 46 6c 61 67 29 3b | 09 09 09 2f 2a 49 73 20 |alFlag);|.../*Is |
|00003580| 77 69 6e 64 6f 77 20 6d | 6f 64 61 6c 3f 09 09 09 |window m|odal?...|
|00003590| 09 09 09 09 09 2a 2f 0d | 0d 2f 2a 4f 70 65 6e 20 |.....*/.|./*Open |
|000035a0| 61 20 77 69 6e 64 6f 77 | 20 61 6e 64 20 6d 61 6b |a window| and mak|
|000035b0| 65 20 69 74 20 61 63 74 | 69 76 65 20 28 63 6f 2d |e it act|ive (co-|
|000035c0| 6f 72 64 69 6e 61 74 65 | 73 20 73 70 65 63 69 66 |ordinate|s specif|
|000035d0| 69 65 64 20 61 73 20 61 | 20 27 72 65 63 74 27 29 |ied as a| 'rect')|
|000035e0| 20 2a 2f 0d 09 70 61 73 | 63 61 6c 20 76 6f 69 64 | */..pas|cal void|
|000035f0| 20 57 69 6e 64 6f 77 4f | 70 65 6e 52 65 63 74 20 | WindowO|penRect |
|00003600| 28 69 6e 74 20 57 69 6e | 64 6f 77 2c 09 09 09 09 |(int Win|dow,....|
|00003610| 09 09 2f 2a 57 69 6e 64 | 6f 77 20 6e 75 6d 62 65 |../*Wind|ow numbe|
|00003620| 72 09 09 09 09 09 09 09 | 09 09 2a 2f 0d 09 09 09 |r.......|..*/....|
|00003630| 09 09 09 09 09 09 52 65 | 63 74 20 2a 42 6f 75 6e |......Re|ct *Boun|
|00003640| 64 73 2c 09 09 09 09 2f | 2a 57 69 6e 64 6f 77 27 |ds,..../|*Window'|
|00003650| 73 20 63 6f 2d 6f 72 64 | 69 6e 61 74 65 73 20 28 |s co-ord|inates (|
|00003660| 67 6c 6f 62 61 6c 29 09 | 09 09 09 2a 2f 0d 09 09 |global).|...*/...|
|00003670| 09 09 09 09 09 09 09 53 | 74 72 32 35 35 20 54 69 |.......S|tr255 Ti|
|00003680| 74 6c 65 2c 09 09 09 09 | 2f 2a 57 69 6e 64 6f 77 |tle,....|/*Window|
|00003690| 27 73 20 74 69 74 6c 65 | 20 28 69 66 20 61 70 70 |'s title| (if app|
|000036a0| 6c 69 63 61 62 6c 65 29 | 09 09 09 09 2a 2f 0d 09 |licable)|....*/..|
|000036b0| 09 09 09 09 09 09 09 09 | 69 6e 74 20 70 72 6f 63 |........|int proc|
|000036c0| 49 44 2c 09 09 09 09 09 | 2f 2a 57 69 6e 64 6f 77 |ID,.....|/*Window|
|000036d0| 20 64 65 66 69 6e 69 74 | 69 6f 6e 20 49 44 09 09 | definit|ion ID..|
|000036e0| 09 09 09 09 09 2a 2f 0d | 09 09 09 09 09 09 09 09 |.....*/.|........|
|000036f0| 09 42 6f 6f 6c 65 61 6e | 20 67 6f 41 77 61 79 46 |.Boolean| goAwayF|
|00003700| 6c 61 67 2c 09 09 09 2f | 2a 49 6e 63 6c 75 64 65 |lag,.../|*Include|
|00003710| 20 43 6c 6f 73 65 20 42 | 6f 78 3f 09 09 09 09 09 | Close B|ox?.....|
|00003720| 09 09 2a 2f 0d 09 09 09 | 09 09 09 09 09 09 42 6f |..*/....|......Bo|
|00003730| 6f 6c 65 61 6e 20 6d 6f | 64 61 6c 46 6c 61 67 29 |olean mo|dalFlag)|
|00003740| 3b 09 09 09 2f 2a 49 73 | 20 77 69 6e 64 6f 77 20 |;.../*Is| window |
|00003750| 6d 6f 64 61 6c 3f 09 09 | 09 09 09 09 09 09 2a 2f |modal?..|......*/|
|00003760| 0d 0d 2f 2a 43 6c 6f 73 | 65 20 61 20 77 69 6e 64 |../*Clos|e a wind|
|00003770| 6f 77 2a 2f 0d 09 70 61 | 73 63 61 6c 20 76 6f 69 |ow*/..pa|scal voi|
|00003780| 64 20 57 69 6e 64 6f 77 | 43 6c 6f 73 65 20 28 69 |d Window|Close (i|
|00003790| 6e 74 20 57 69 6e 64 6f | 77 29 3b 09 09 09 09 09 |nt Windo|w);.....|
|000037a0| 09 2f 2a 57 69 6e 64 6f | 77 20 6e 75 6d 62 65 72 |./*Windo|w number|
|000037b0| 09 09 09 09 09 09 09 09 | 09 2a 2f 0d 0d 2f 2a 4d |........|.*/../*M|
|000037c0| 61 6b 65 20 61 20 73 70 | 65 63 69 66 69 65 64 20 |ake a sp|ecified |
|000037d0| 77 69 6e 64 6f 77 20 74 | 68 65 20 22 61 63 74 69 |window t|he "acti|
|000037e0| 76 65 22 20 61 6e 64 20 | 22 63 75 72 72 65 6e 74 |ve" and |"current|
|000037f0| 22 20 77 69 6e 64 6f 77 | 2a 2f 0d 09 70 61 73 63 |" window|*/..pasc|
|00003800| 61 6c 20 76 6f 69 64 20 | 41 63 74 69 76 61 74 65 |al void |Activate|
|00003810| 57 69 6e 64 6f 77 20 28 | 69 6e 74 20 57 69 6e 64 |Window (|int Wind|
|00003820| 6f 77 29 3b 09 09 09 09 | 09 2f 2a 57 69 6e 64 6f |ow);....|./*Windo|
|00003830| 77 20 6e 75 6d 62 65 72 | 09 09 09 09 09 09 09 09 |w number|........|
|00003840| 09 2a 2f 0d 0d 2f 2a 53 | 65 74 20 61 20 77 69 6e |.*/../*S|et a win|
|00003850| 64 6f 77 27 73 20 74 69 | 74 6c 65 2a 2f 0d 09 70 |dow's ti|tle*/..p|
|00003860| 61 73 63 61 6c 20 76 6f | 69 64 20 57 69 6e 64 6f |ascal vo|id Windo|
|00003870| 77 54 69 74 6c 65 20 28 | 69 6e 74 20 57 69 6e 64 |wTitle (|int Wind|
|00003880| 6f 77 2c 09 09 09 09 09 | 09 2f 2a 57 69 6e 64 6f |ow,.....|./*Windo|
|00003890| 77 20 6e 75 6d 62 65 72 | 09 09 09 09 09 09 09 09 |w number|........|
|000038a0| 09 2a 2f 0d 09 09 09 09 | 09 09 09 09 09 53 74 72 |.*/.....|.....Str|
|000038b0| 32 35 35 20 54 69 74 6c | 65 29 3b 09 09 09 09 2f |255 Titl|e);..../|
|000038c0| 2a 57 69 6e 64 6f 77 27 | 73 20 74 69 74 6c 65 20 |*Window'|s title |
|000038d0| 28 69 66 20 61 70 70 6c | 69 63 61 62 6c 65 29 09 |(if appl|icable).|
|000038e0| 09 09 09 2a 2f 0d 0d 2f | 2a 53 65 74 20 74 68 65 |...*/../|*Set the|
|000038f0| 20 63 75 72 72 65 6e 74 | 20 77 69 6e 64 6f 77 27 | current| window'|
|00003900| 73 20 22 64 72 61 67 67 | 69 6e 67 22 20 62 6f 75 |s "dragg|ing" bou|
|00003910| 6e 64 61 72 79 20 66 6f | 72 20 74 68 65 20 63 75 |ndary fo|r the cu|
|00003920| 72 73 6f 72 2a 2f 0d 09 | 70 61 73 63 61 6c 20 76 |rsor*/..|pascal v|
|00003930| 6f 69 64 20 53 65 74 43 | 75 72 73 44 72 61 67 42 |oid SetC|ursDragB|
|00003940| 6f 75 6e 64 73 20 28 69 | 6e 74 20 6c 65 66 74 2c |ounds (i|nt left,|
|00003950| 09 09 09 09 09 2f 2a 43 | 75 72 73 6f 72 27 73 20 |...../*C|ursor's |
|00003960| 22 77 69 6e 64 6f 77 20 | 64 72 61 67 67 69 6e 67 |"window |dragging|
|00003970| 22 20 62 6f 75 6e 64 61 | 72 79 20 28 67 6c 6f 62 |" bounda|ry (glob|
|00003980| 61 6c 29 09 2a 2f 0d 09 | 09 09 09 09 09 09 09 09 |al).*/..|........|
|00003990| 69 6e 74 20 74 6f 70 2c | 09 09 09 09 09 2f 2a 09 |int top,|...../*.|
|000039a0| 09 09 09 09 09 09 09 09 | 09 09 09 2a 2f 0d 09 09 |........|...*/...|
|000039b0| 09 09 09 09 09 09 09 69 | 6e 74 20 72 69 67 68 74 |.......i|nt right|
|000039c0| 2c 09 09 09 09 09 2f 2a | 09 09 09 09 09 09 09 09 |,...../*|........|
|000039d0| 09 09 09 09 2a 2f 0d 09 | 09 09 09 09 09 09 09 09 |....*/..|........|
|000039e0| 69 6e 74 20 62 6f 74 74 | 6f 6d 29 3b 09 09 09 09 |int bott|om);....|
|000039f0| 2f 2a 09 09 09 09 09 09 | 09 09 09 09 09 09 2a 2f |/*......|......*/|
|00003a00| 0d 0d 2f 2a 53 65 74 20 | 74 68 65 20 63 75 72 72 |../*Set |the curr|
|00003a10| 65 6e 74 20 77 69 6e 64 | 6f 77 27 73 20 22 67 72 |ent wind|ow's "gr|
|00003a20| 6f 77 69 6e 67 22 20 6c | 69 6d 69 74 73 20 28 69 |owing" l|imits (i|
|00003a30| 65 3a 20 6d 61 78 69 6d | 75 6d 2f 6d 69 6e 69 6d |e: maxim|um/minim|
|00003a40| 75 6d 20 73 69 7a 65 29 | 20 2a 2f 0d 09 70 61 73 |um size)| */..pas|
|00003a50| 63 61 6c 20 76 6f 69 64 | 20 53 65 74 57 69 6e 64 |cal void| SetWind|
|00003a60| 6f 77 53 69 7a 65 4c 69 | 6d 69 74 73 20 28 69 6e |owSizeLi|mits (in|
|00003a70| 74 20 6d 69 6e 48 6f 72 | 69 7a 2c 09 09 09 09 2f |t minHor|iz,..../|
|00003a80| 2a 57 69 6e 64 6f 77 27 | 73 20 73 69 7a 65 20 6c |*Window'|s size l|
|00003a90| 69 6d 69 74 73 20 69 6e | 20 70 69 78 65 6c 73 09 |imits in| pixels.|
|00003aa0| 09 09 09 2a 2f 0d 09 09 | 09 09 09 09 09 09 09 69 |...*/...|.......i|
|00003ab0| 6e 74 20 6d 69 6e 56 65 | 72 74 2c 09 09 09 09 2f |nt minVe|rt,..../|
|00003ac0| 2a 09 09 09 09 09 09 09 | 09 09 09 09 09 2a 2f 0d |*.......|.....*/.|
|00003ad0| 09 09 09 09 09 09 09 09 | 09 69 6e 74 20 6d 61 78 |........|.int max|
|00003ae0| 48 6f 72 69 7a 2c 09 09 | 09 09 2f 2a 09 09 09 09 |Horiz,..|../*....|
|00003af0| 09 09 09 09 09 09 09 09 | 2a 2f 0d 09 09 09 09 09 |........|*/......|
|00003b00| 09 09 09 09 69 6e 74 20 | 4d 61 78 56 65 72 74 29 |....int |MaxVert)|
|00003b10| 3b 09 09 09 09 2f 2a 09 | 09 09 09 09 09 09 09 09 |;..../*.|........|
|00003b20| 09 09 09 2a 2f 0d 0d 2f | 2a 53 65 74 20 74 68 65 |...*/../|*Set the|
|00003b30| 20 63 75 72 72 65 6e 74 | 20 77 69 6e 64 6f 77 27 | current| window'|
|00003b40| 73 20 73 74 61 6e 64 61 | 72 64 20 63 6f 2d 6f 72 |s standa|rd co-or|
|00003b50| 64 69 6e 61 74 65 73 20 | 61 6e 64 20 75 73 65 72 |dinates |and user|
|00003b60| 20 63 6f 2d 6f 72 64 69 | 6e 61 74 65 73 20 66 6f | co-ordi|nates fo|
|00003b70| 72 20 22 7a 6f 6f 6d 69 | 6e 67 22 2a 2f 0d 09 70 |r "zoomi|ng"*/..p|
|00003b80| 61 73 63 61 6c 20 76 6f | 69 64 20 53 65 74 57 69 |ascal vo|id SetWi|
|00003b90| 6e 64 6f 77 5a 6f 6f 6d | 20 28 52 65 63 74 20 2a |ndowZoom| (Rect *|
|00003ba0| 75 73 65 72 52 65 63 74 | 2c 20 52 65 63 74 20 2a |userRect|, Rect *|
|00003bb0| 73 74 64 52 65 63 74 29 | 3b 09 2f 2a 55 73 65 72 |stdRect)|;./*User|
|00003bc0| 20 26 20 73 74 61 6e 64 | 61 72 64 20 63 6f 2d 6f | & stand|ard co-o|
|00003bd0| 72 64 69 6e 61 74 65 73 | 20 28 67 6c 6f 62 61 6c |rdinates| (global|
|00003be0| 29 09 09 09 2a 2f 0d 0d | 2f 2a 47 65 74 20 74 68 |)...*/..|/*Get th|
|00003bf0| 65 20 63 75 72 72 65 6e | 74 20 77 69 6e 64 6f 77 |e curren|t window|
|00003c00| 27 73 20 75 73 65 72 20 | 63 6f 2d 6f 72 64 69 6e |'s user |co-ordin|
|00003c10| 61 74 65 73 20 26 20 73 | 74 61 6e 64 61 72 64 20 |ates & s|tandard |
|00003c20| 63 6f 2d 6f 72 64 69 6e | 61 74 65 73 20 66 6f 72 |co-ordin|ates for|
|00003c30| 20 22 7a 6f 6f 6d 69 6e | 67 22 2a 2f 0d 09 70 61 | "zoomin|g"*/..pa|
|00003c40| 73 63 61 6c 20 76 6f 69 | 64 20 47 65 74 57 69 6e |scal voi|d GetWin|
|00003c50| 64 6f 77 5a 6f 6f 6d 20 | 28 52 65 63 74 20 2a 75 |dowZoom |(Rect *u|
|00003c60| 73 65 72 52 65 63 74 2c | 20 52 65 63 74 20 2a 73 |serRect,| Rect *s|
|00003c70| 74 64 52 65 63 74 29 3b | 09 2f 2a 55 73 65 72 20 |tdRect);|./*User |
|00003c80| 26 20 73 74 61 6e 64 61 | 72 64 20 63 6f 2d 6f 72 |& standa|rd co-or|
|00003c90| 64 69 6e 61 74 65 73 20 | 28 67 6c 6f 62 61 6c 29 |dinates |(global)|
|00003ca0| 09 09 09 2a 2f 0d 0d 2f | 2a 4d 61 6b 65 20 61 20 |...*/../|*Make a |
|00003cb0| 73 70 65 63 69 66 69 65 | 64 20 77 69 6e 64 6f 77 |specifie|d window|
|00003cc0| 20 22 63 75 72 72 65 6e | 74 22 2c 20 62 75 74 20 | "curren|t", but |
|00003cd0| 64 6f 20 6e 6f 74 20 61 | 63 74 69 76 61 74 65 20 |do not a|ctivate |
|00003ce0| 69 74 2a 2f 0d 09 70 61 | 73 63 61 6c 20 76 6f 69 |it*/..pa|scal voi|
|00003cf0| 64 20 43 75 72 72 65 6e | 74 57 69 6e 64 6f 77 20 |d Curren|tWindow |
|00003d00| 28 69 6e 74 20 57 69 6e | 64 6f 77 29 3b 09 09 09 |(int Win|dow);...|
|00003d10| 09 09 09 2f 2a 57 69 6e | 64 6f 77 20 6e 75 6d 62 |.../*Win|dow numb|
|00003d20| 65 72 09 09 09 09 09 09 | 09 09 09 2a 2f 0d 0d 2f |er......|...*/../|
|00003d30| 2a 4d 61 6b 65 20 74 68 | 65 20 22 61 63 74 69 76 |*Make th|e "activ|
|00003d40| 65 22 20 77 69 6e 64 6f | 77 20 74 68 65 20 22 63 |e" windo|w the "c|
|00003d50| 75 72 72 65 6e 74 22 2a | 2f 0d 09 70 61 73 63 61 |urrent"*|/..pasca|
|00003d60| 6c 20 76 6f 69 64 20 43 | 75 72 72 65 6e 74 57 69 |l void C|urrentWi|
|00003d70| 6e 64 6f 77 52 65 73 65 | 74 28 76 6f 69 64 29 3b |ndowRese|t(void);|
|00003d80| 0d 0d 2f 2a 47 65 74 20 | 61 20 77 69 6e 64 6f 77 |../*Get |a window|
|00003d90| 27 73 20 73 74 61 74 75 | 73 2a 2f 0d 09 70 61 73 |'s statu|s*/..pas|
|00003da0| 63 61 6c 20 76 6f 69 64 | 20 57 69 6e 64 6f 77 53 |cal void| WindowS|
|00003db0| 74 61 74 75 73 20 28 69 | 6e 74 20 57 69 6e 64 6f |tatus (i|nt Windo|
|00003dc0| 77 2c 09 09 09 09 09 09 | 2f 2a 57 69 6e 64 6f 77 |w,......|/*Window|
|00003dd0| 20 6e 75 6d 62 65 72 09 | 09 09 09 09 09 09 09 09 | number.|........|
|00003de0| 2a 2f 0d 09 09 09 09 09 | 09 09 09 09 54 50 57 69 |*/......|....TPWi|
|00003df0| 6e 64 6f 77 53 74 61 74 | 75 73 20 2a 53 74 61 74 |ndowStat|us *Stat|
|00003e00| 75 73 29 3b 09 2f 2a 57 | 69 6e 64 6f 77 27 73 20 |us);./*W|indow's |
|00003e10| 73 74 61 74 75 73 20 72 | 65 63 6f 72 64 09 09 09 |status r|ecord...|
|00003e20| 09 09 09 2a 2f 0d 0d 2f | 2a 47 65 74 20 74 68 65 |...*/../|*Get the|
|00003e30| 20 61 63 74 69 76 65 20 | 77 69 6e 64 6f 77 20 6e | active |window n|
|00003e40| 75 6d 62 65 72 2a 2f 0d | 09 70 61 73 63 61 6c 20 |umber*/.|.pascal |
|00003e50| 69 6e 74 20 41 63 74 69 | 76 65 57 69 6e 64 6f 77 |int Acti|veWindow|
|00003e60| 4e 75 6d 62 65 72 28 76 | 6f 69 64 29 3b 09 09 09 |Number(v|oid);...|
|00003e70| 09 09 09 2f 2a 57 69 6e | 64 6f 77 20 6e 75 6d 62 |.../*Win|dow numb|
|00003e80| 65 72 20 6f 66 20 61 63 | 74 69 76 65 20 77 69 6e |er of ac|tive win|
|00003e90| 64 6f 77 09 09 09 09 2a | 2f 0d 0d 2f 2a 47 65 74 |dow....*|/../*Get|
|00003ea0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 77 69 6e | the cur|rent win|
|00003eb0| 64 6f 77 20 6e 75 6d 62 | 65 72 2a 2f 0d 09 70 61 |dow numb|er*/..pa|
|00003ec0| 73 63 61 6c 20 69 6e 74 | 20 43 75 72 72 65 6e 74 |scal int| Current|
|00003ed0| 57 69 6e 64 6f 77 4e 75 | 6d 62 65 72 28 76 6f 69 |WindowNu|mber(voi|
|00003ee0| 64 29 3b 09 09 09 09 09 | 09 2f 2a 57 69 6e 64 6f |d);.....|./*Windo|
|00003ef0| 77 20 6e 75 6d 62 65 72 | 20 6f 66 20 63 75 72 72 |w number| of curr|
|00003f00| 65 6e 74 20 77 69 6e 64 | 6f 77 09 09 09 09 2a 2f |ent wind|ow....*/|
|00003f10| 0d 0d 2f 2a 47 65 74 20 | 74 68 65 20 66 72 6f 6e |../*Get |the fron|
|00003f20| 74 20 6d 6f 73 74 20 77 | 69 6e 64 6f 77 20 6e 75 |t most w|indow nu|
|00003f30| 6d 62 65 72 2a 2f 0d 09 | 70 61 73 63 61 6c 20 69 |mber*/..|pascal i|
|00003f40| 6e 74 20 46 69 72 73 74 | 57 69 6e 64 6f 77 4e 75 |nt First|WindowNu|
|00003f50| 6d 62 65 72 28 76 6f 69 | 64 29 3b 09 09 09 09 09 |mber(voi|d);.....|
|00003f60| 09 09 2f 2a 57 69 6e 64 | 6f 77 20 6e 75 6d 62 65 |../*Wind|ow numbe|
|00003f70| 72 20 6f 66 20 66 72 6f | 6e 74 20 6d 6f 73 74 20 |r of fro|nt most |
|00003f80| 77 69 6e 64 6f 77 09 09 | 09 2a 2f 0d 0d 2f 2a 47 |window..|.*/../*G|
|00003f90| 65 74 20 61 20 77 69 6e | 64 6f 77 27 73 20 22 77 |et a win|dow's "w|
|00003fa0| 69 6e 64 6f 77 20 70 6f | 69 6e 74 65 72 22 20 2a |indow po|inter" *|
|00003fb0| 2f 0d 09 70 61 73 63 61 | 6c 20 57 69 6e 64 6f 77 |/..pasca|l Window|
|00003fc0| 50 74 72 20 57 69 6e 64 | 6f 77 50 6f 69 6e 74 65 |Ptr Wind|owPointe|
|00003fd0| 72 20 28 69 6e 74 20 57 | 69 6e 64 6f 77 09 09 09 |r (int W|indow...|
|00003fe0| 09 09 2f 2a 57 69 6e 64 | 6f 77 20 6e 75 6d 62 65 |../*Wind|ow numbe|
|00003ff0| 72 09 09 09 09 09 09 09 | 09 09 2a 2f 0d 09 09 09 |r.......|..*/....|
|00004000| 09 09 09 09 09 09 29 3b | 20 09 09 09 09 09 09 09 |......);| .......|
|00004010| 2f 2a 20 3d 20 57 69 6e | 64 6f 77 27 73 20 70 6f |/* = Win|dow's po|
|00004020| 69 6e 74 65 72 09 09 09 | 09 09 09 09 2a 2f 0d 0d |inter...|....*/..|
|00004030| 0d 0d 2f 2a 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |../*====|========|
|00004040| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00004050| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00004060| 3d 3d 3d 20 42 20 55 20 | 54 20 54 20 4f 20 4e 20 |=== B U |T T O N |
|00004070| 53 20 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |S ======|========|
|00004080| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00004090| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000040a0| 3d 09 2a 2f 0d 2f 2a 41 | 6c 6c 20 62 75 74 74 6f |=.*/./*A|ll butto|
|000040b0| 6e 20 6f 70 65 72 61 74 | 69 6f 6e 73 20 70 65 72 |n operat|ions per|
|000040c0| 74 61 69 6e 20 74 6f 20 | 74 68 65 20 22 63 75 72 |tain to |the "cur|
|000040d0| 72 65 6e 74 22 20 77 69 | 6e 64 6f 77 2e 2a 2f 0d |rent" wi|ndow.*/.|
|000040e0| 0d 2f 2a 43 72 65 61 74 | 65 20 61 20 6e 65 77 20 |./*Creat|e a new |
|000040f0| 62 75 74 74 6f 6e 2a 2f | 0d 09 70 61 73 63 61 6c |button*/|..pascal|
|00004100| 20 76 6f 69 64 20 4e 65 | 77 42 75 74 74 6f 6e 20 | void Ne|wButton |
|00004110| 28 69 6e 74 20 42 75 74 | 74 6f 6e 2c 09 09 09 09 |(int But|ton,....|
|00004120| 09 09 09 2f 2a 42 75 74 | 74 6f 6e 20 6e 75 6d 62 |.../*But|ton numb|
|00004130| 65 72 09 09 09 09 09 09 | 09 09 09 2a 2f 0d 09 09 |er......|...*/...|
|00004140| 09 09 09 09 09 09 09 69 | 6e 74 20 6c 65 66 74 2c |.......i|nt left,|
|00004150| 09 09 09 09 09 2f 2a 42 | 75 74 74 6f 6e 27 73 20 |...../*B|utton's |
|00004160| 63 6f 2d 6f 72 64 69 6e | 61 74 65 73 20 28 6c 6f |co-ordin|ates (lo|
|00004170| 63 61 6c 29 09 09 09 09 | 09 2a 2f 0d 09 09 09 09 |cal)....|.*/.....|
|00004180| 09 09 09 09 09 69 6e 74 | 20 74 6f 70 2c 09 09 09 |.....int| top,...|
|00004190| 09 09 2f 2a 09 09 09 09 | 09 09 09 09 09 09 09 09 |../*....|........|
|000041a0| 2a 2f 0d 09 09 09 09 09 | 09 09 09 09 69 6e 74 20 |*/......|....int |
|000041b0| 72 69 67 68 74 2c 09 09 | 09 09 09 2f 2a 09 09 09 |right,..|.../*...|
|000041c0| 09 09 09 09 09 09 09 09 | 09 2a 2f 0d 09 09 09 09 |........|.*/.....|
|000041d0| 09 09 09 09 09 69 6e 74 | 20 62 6f 74 74 6f 6d 2c |.....int| bottom,|
|000041e0| 09 09 09 09 09 2f 2a 09 | 09 09 09 09 09 09 09 09 |...../*.|........|
|000041f0| 09 09 09 2a 2f 0d 09 09 | 09 09 09 09 09 09 09 53 |...*/...|.......S|
|00004200| 74 72 32 35 35 20 54 69 | 74 6c 65 2c 09 09 09 09 |tr255 Ti|tle,....|
|00004210| 2f 2a 42 75 74 74 6f 6e | 27 73 20 74 69 74 6c 65 |/*Button|'s title|
|00004220| 09 09 09 09 09 09 09 09 | 2a 2f 0d 09 09 09 09 09 |........|*/......|
|00004230| 09 09 09 09 69 6e 74 20 | 70 72 6f 63 49 44 2c 09 |....int |procID,.|
|00004240| 09 09 09 09 2f 2a 42 75 | 74 74 6f 6e 27 73 20 64 |..../*Bu|tton's d|
|00004250| 65 66 69 6e 69 74 69 6f | 6e 20 49 44 09 09 09 09 |efinitio|n ID....|
|00004260| 09 09 2a 2f 0d 09 09 09 | 09 09 09 09 09 09 42 6f |..*/....|......Bo|
|00004270| 6f 6c 65 61 6e 20 45 6e | 61 62 6c 65 64 46 6c 61 |olean En|abledFla|
|00004280| 67 2c 09 09 2f 2a 45 6e | 61 62 6c 65 20 74 68 65 |g,../*En|able the|
|00004290| 20 62 75 74 74 6f 6e 3f | 09 09 09 09 09 09 09 2a | button?|.......*|
|000042a0| 2f 0d 09 09 09 09 09 09 | 09 09 09 42 6f 6f 6c 65 |/.......|...Boole|
|000042b0| 61 6e 20 53 65 6c 65 63 | 74 65 64 46 6c 61 67 29 |an Selec|tedFlag)|
|000042c0| 3b 09 09 2f 2a 53 65 6c | 65 63 74 20 74 68 65 20 |;../*Sel|ect the |
|000042d0| 62 75 74 74 6f 6e 3f 09 | 09 09 09 09 09 09 2a 2f |button?.|......*/|
|000042e0| 0d 0d 2f 2a 43 72 65 61 | 74 65 20 61 20 6e 65 77 |../*Crea|te a new|
|000042f0| 20 62 75 74 74 6f 6e 20 | 28 63 6f 2d 6f 72 64 69 | button |(co-ordi|
|00004300| 6e 61 74 65 73 20 73 70 | 65 63 69 66 69 65 64 20 |nates sp|ecified |
|00004310| 61 73 20 61 20 27 72 65 | 63 74 27 29 20 2a 2f 0d |as a 're|ct') */.|
|00004320| 09 70 61 73 63 61 6c 20 | 76 6f 69 64 20 4e 65 77 |.pascal |void New|
|00004330| 42 75 74 74 6f 6e 52 65 | 63 74 20 28 69 6e 74 20 |ButtonRe|ct (int |
|00004340| 42 75 74 74 6f 6e 2c 09 | 09 09 09 09 09 2f 2a 42 |Button,.|...../*B|
|00004350| 75 74 74 6f 6e 20 6e 75 | 6d 62 65 72 09 09 09 09 |utton nu|mber....|
|00004360| 09 09 09 09 09 2a 2f 0d | 09 09 09 09 09 09 09 09 |.....*/.|........|
|00004370| 09 52 65 63 74 20 2a 42 | 6f 75 6e 64 73 2c 09 09 |.Rect *B|ounds,..|
|00004380| 09 09 2f 2a 42 75 74 74 | 6f 6e 27 73 20 63 6f 2d |../*Butt|on's co-|
|00004390| 6f 72 64 69 6e 61 74 65 | 73 20 28 6c 6f 63 61 6c |ordinate|s (local|
|000043a0| 29 09 09 09 09 09 2a 2f | 0d 09 09 09 09 09 09 09 |).....*/|........|
|000043b0| 09 09 53 74 72 32 35 35 | 20 54 69 74 6c 65 2c 09 |..Str255| Title,.|
|000043c0| 09 09 09 2f 2a 42 75 74 | 74 6f 6e 27 73 20 74 69 |.../*But|ton's ti|
|000043d0| 74 6c 65 09 09 09 09 09 | 09 09 09 2a 2f 0d 09 09 |tle.....|...*/...|
|000043e0| 09 09 09 09 09 09 09 69 | 6e 74 20 70 72 6f 63 49 |.......i|nt procI|
|000043f0| 44 2c 09 09 09 09 09 2f | 2a 42 75 74 74 6f 6e 27 |D,...../|*Button'|
|00004400| 73 20 64 65 66 69 6e 69 | 74 69 6f 6e 20 49 44 09 |s defini|tion ID.|
|00004410| 09 09 09 09 09 2a 2f 0d | 09 09 09 09 09 09 09 09 |.....*/.|........|
|00004420| 09 42 6f 6f 6c 65 61 6e | 20 45 6e 61 62 6c 65 64 |.Boolean| Enabled|
|00004430| 46 6c 61 67 2c 09 09 2f | 2a 45 6e 61 62 6c 65 20 |Flag,../|*Enable |
|00004440| 74 68 65 20 62 75 74 74 | 6f 6e 3f 09 09 09 09 09 |the butt|on?.....|
|00004450| 09 09 2a 2f 0d 09 09 09 | 09 09 09 09 09 09 42 6f |..*/....|......Bo|
|00004460| 6f 6c 65 61 6e 20 53 65 | 6c 65 63 74 65 64 46 6c |olean Se|lectedFl|
|00004470| 61 67 29 3b 09 09 2f 2a | 53 65 6c 65 63 74 20 74 |ag);../*|Select t|
|00004480| 68 65 20 62 75 74 74 6f | 6e 3f 09 09 09 09 09 09 |he butto|n?......|
|00004490| 09 2a 2f 0d 0d 2f 2a 44 | 65 6c 65 74 65 20 61 20 |.*/../*D|elete a |
|000044a0| 62 75 74 74 6f 6e 2a 2f | 0d 09 70 61 73 63 61 6c |button*/|..pascal|
|000044b0| 20 76 6f 69 64 20 44 65 | 6c 65 74 65 42 75 74 74 | void De|leteButt|
|000044c0| 6f 6e 20 28 69 6e 74 20 | 42 75 74 74 6f 6e 29 3b |on (int |Button);|
|000044d0| 09 09 09 09 09 09 2f 2a | 42 75 74 74 6f 6e 20 6e |....../*|Button n|
|000044e0| 75 6d 62 65 72 09 09 09 | 09 09 09 09 09 09 2a 2f |umber...|......*/|
|000044f0| 0d 0d 2f 2a 45 6e 61 62 | 6c 65 2f 64 69 73 61 62 |../*Enab|le/disab|
|00004500| 6c 65 20 61 20 62 75 74 | 74 6f 6e 2a 2f 0d 09 70 |le a but|ton*/..p|
|00004510| 61 73 63 61 6c 20 76 6f | 69 64 20 45 6e 61 62 6c |ascal vo|id Enabl|
|00004520| 65 42 75 74 74 6f 6e 20 | 28 69 6e 74 20 42 75 74 |eButton |(int But|
|00004530| 74 6f 6e 2c 09 09 09 09 | 09 09 2f 2a 42 75 74 74 |ton,....|../*Butt|
|00004540| 6f 6e 20 6e 75 6d 62 65 | 72 09 09 09 09 09 09 09 |on numbe|r.......|
|00004550| 09 09 2a 2f 0d 09 09 09 | 09 09 09 09 09 09 42 6f |..*/....|......Bo|
|00004560| 6f 6c 65 61 6e 20 45 6e | 61 62 6c 65 64 46 6c 61 |olean En|abledFla|
|00004570| 67 29 3b 09 09 2f 2a 45 | 6e 61 62 6c 65 20 74 68 |g);../*E|nable th|
|00004580| 65 20 62 75 74 74 6f 6e | 3f 09 09 09 09 09 09 09 |e button|?.......|
|00004590| 2a 2f 0d 0d 2f 2a 53 65 | 6c 65 63 74 2f 64 65 73 |*/../*Se|lect/des|
|000045a0| 65 6c 65 63 74 20 61 20 | 62 75 74 74 6f 6e 2a 2f |elect a |button*/|
|000045b0| 0d 09 70 61 73 63 61 6c | 20 76 6f 69 64 20 53 65 |..pascal| void Se|
|000045c0| 6c 65 63 74 42 75 74 74 | 6f 6e 20 28 69 6e 74 20 |lectButt|on (int |
|000045d0| 42 75 74 74 6f 6e 2c 09 | 09 09 09 09 09 2f 2a 42 |Button,.|...../*B|
|000045e0| 75 74 74 6f 6e 20 6e 75 | 6d 62 65 72 09 09 09 09 |utton nu|mber....|
|000045f0| 09 09 09 09 09 2a 2f 0d | 09 09 09 09 09 09 09 09 |.....*/.|........|
|00004600| 09 42 6f 6f 6c 65 61 6e | 20 53 65 6c 65 63 74 65 |.Boolean| Selecte|
|00004610| 64 46 6c 61 67 29 3b 09 | 09 2f 2a 53 65 6c 65 63 |dFlag);.|./*Selec|
|00004620| 74 20 74 68 65 20 62 75 | 74 74 6f 6e 3f 09 09 09 |t the bu|tton?...|
|00004630| 09 09 09 09 2a 2f 0d 0d | 2f 2a 44 65 74 65 72 6d |....*/..|/*Determ|
|00004640| 69 6e 65 20 69 66 20 61 | 20 62 75 74 74 6f 6e 20 |ine if a| button |
|00004650| 69 73 20 65 6e 61 62 6c | 65 64 2a 2f 0d 09 70 61 |is enabl|ed*/..pa|
|00004660| 73 63 61 6c 20 42 6f 6f | 6c 65 61 6e 20 42 75 74 |scal Boo|lean But|
|00004670| 74 6f 6e 49 73 45 6e 61 | 62 6c 65 64 20 28 69 6e |tonIsEna|bled (in|
|00004680| 74 20 42 75 74 74 6f 6e | 09 09 09 09 09 2f 2a 42 |t Button|...../*B|
|00004690| 75 74 74 6f 6e 20 6e 75 | 6d 62 65 72 09 09 09 09 |utton nu|mber....|
|000046a0| 09 09 09 09 09 2a 2f 0d | 09 09 09 09 09 09 09 09 |.....*/.|........|
|000046b0| 09 29 3b 09 09 09 09 09 | 09 09 2f 2a 20 3d 20 49 |.);.....|../* = I|
|000046c0| 73 20 74 68 65 20 62 75 | 74 74 6f 6e 20 65 6e 61 |s the bu|tton ena|
|000046d0| 62 6c 65 64 3f 09 09 09 | 09 09 09 2a 2f 0d 0d 2f |bled?...|...*/../|
|000046e0| 2a 44 65 74 65 72 6d 69 | 6e 65 20 69 66 20 61 20 |*Determi|ne if a |
|000046f0| 62 75 74 74 6f 6e 20 69 | 73 20 73 65 6c 65 63 74 |button i|s select|
|00004700| 65 64 2a 2f 0d 09 70 61 | 73 63 61 6c 20 42 6f 6f |ed*/..pa|scal Boo|
|00004710| 6c 65 61 6e 20 42 75 74 | 74 6f 6e 49 73 53 65 6c |lean But|tonIsSel|
|00004720| 65 63 74 65 64 20 28 69 | 6e 74 20 42 75 74 74 6f |ected (i|nt Butto|
|00004730| 6e 09 09 09 09 09 2f 2a | 42 75 74 74 6f 6e 20 6e |n...../*|Button n|
|00004740| 75 6d 62 65 72 09 09 09 | 09 09 09 09 09 09 2a 2f |umber...|......*/|
|00004750| 0d 09 09 09 09 09 09 09 | 09 09 29 3b 09 09 09 09 |........|..);....|
|00004760| 09 09 09 2f 2a 20 3d 20 | 49 73 20 74 68 65 20 62 |.../* = |Is the b|
|00004770| 75 74 74 6f 6e 20 73 65 | 6c 65 63 74 65 64 3f 09 |utton se|lected?.|
|00004780| 09 09 09 09 2a 2f 0d 0d | 2f 2a 53 65 74 20 61 20 |....*/..|/*Set a |
|00004790| 62 75 74 74 6f 6e 27 73 | 20 74 69 74 6c 65 2a 2f |button's| title*/|
|000047a0| 0d 09 70 61 73 63 61 6c | 20 76 6f 69 64 20 42 75 |..pascal| void Bu|
|000047b0| 74 74 6f 6e 54 69 74 6c | 65 20 28 69 6e 74 20 42 |ttonTitl|e (int B|
|000047c0| 75 74 74 6f 6e 2c 09 09 | 09 09 09 09 2f 2a 42 75 |utton,..|..../*Bu|
|000047d0| 74 74 6f 6e 20 6e 75 6d | 62 65 72 09 09 09 09 09 |tton num|ber.....|
|000047e0| 09 09 09 09 2a 2f 0d 09 | 09 09 09 09 09 09 09 09 |....*/..|........|
|000047f0| 53 74 72 32 35 35 20 54 | 69 74 6c 65 29 3b 09 09 |Str255 T|itle);..|
|00004800| 09 09 2f 2a 42 75 74 74 | 6f 6e 27 73 20 74 69 74 |../*Butt|on's tit|
|00004810| 6c 65 09 09 09 09 09 09 | 09 09 2a 2f 0d 0d 2f 2a |le......|..*/../*|
|00004820| 4d 61 6b 65 20 61 20 62 | 75 74 74 6f 6e 20 74 68 |Make a b|utton th|
|00004830| 65 20 77 69 6e 64 6f 77 | 27 73 20 64 65 66 61 75 |e window|'s defau|
|00004840| 6c 74 20 62 75 74 74 6f | 6e 2a 2f 0d 09 70 61 73 |lt butto|n*/..pas|
|00004850| 63 61 6c 20 76 6f 69 64 | 20 53 65 74 44 65 66 61 |cal void| SetDefa|
|00004860| 75 6c 74 42 75 74 74 6f | 6e 20 28 69 6e 74 20 42 |ultButto|n (int B|
|00004870| 75 74 74 6f 6e 29 3b 09 | 09 09 09 09 2f 2a 42 75 |utton);.|..../*Bu|
|00004880| 74 74 6f 6e 20 6e 75 6d | 62 65 72 09 09 09 09 09 |tton num|ber.....|
|00004890| 09 09 09 09 2a 2f 0d 0d | 2f 2a 52 65 6d 6f 76 65 |....*/..|/*Remove|
|000048a0| 20 74 68 65 20 22 64 65 | 66 61 75 6c 74 20 62 75 | the "de|fault bu|
|000048b0| 74 74 6f 6e 20 73 74 61 | 74 75 73 22 20 66 72 6f |tton sta|tus" fro|
|000048c0| 6d 20 74 68 65 20 77 69 | 6e 64 6f 77 27 73 20 64 |m the wi|ndow's d|
|000048d0| 65 66 61 75 6c 74 20 62 | 75 74 74 6f 6e 2a 2f 0d |efault b|utton*/.|
|000048e0| 09 70 61 73 63 61 6c 20 | 76 6f 69 64 20 4e 6f 44 |.pascal |void NoD|
|000048f0| 65 66 61 75 6c 74 42 75 | 74 74 6f 6e 28 76 6f 69 |efaultBu|tton(voi|
|00004900| 64 29 3b 0d 0d 2f 2a 22 | 46 6c 61 73 68 22 20 61 |d);../*"|Flash" a|
|00004910| 20 70 75 73 68 20 62 75 | 74 74 6f 6e 20 61 73 20 | push bu|tton as |
|00004920| 74 68 6f 75 67 68 20 69 | 74 20 77 65 72 65 20 70 |though i|t were p|
|00004930| 72 65 73 73 65 64 20 62 | 79 20 74 68 65 20 75 73 |ressed b|y the us|
|00004940| 65 72 2a 2f 0d 09 70 61 | 73 63 61 6c 20 76 6f 69 |er*/..pa|scal voi|
|00004950| 64 20 46 6c 61 73 68 42 | 75 74 74 6f 6e 20 28 69 |d FlashB|utton (i|
|00004960| 6e 74 20 42 75 74 74 6f | 6e 29 3b 09 09 09 09 09 |nt Butto|n);.....|
|00004970| 09 2f 2a 42 75 74 74 6f | 6e 20 6e 75 6d 62 65 72 |./*Butto|n number|
|00004980| 09 09 09 09 09 09 09 09 | 09 2a 2f 0d 0d 0d 0d 2f |........|.*/..../|
|00004990| 2a 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |*=======|========|
|000049a0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000049b0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 20 53 20 43 |========|==== S C|
|000049c0| 20 52 20 4f 20 4c 20 4c | 20 20 20 42 20 41 20 52 | R O L L| B A R|
|000049d0| 20 53 20 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d | S =====|========|
|000049e0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000049f0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 09 2a |========|======.*|
|00004a00| 2f 0d 2f 2a 41 6c 6c 20 | 73 63 72 6f 6c 6c 20 62 |/./*All |scroll b|
|00004a10| 61 72 20 6f 70 65 72 61 | 74 69 6f 6e 73 20 70 65 |ar opera|tions pe|
|00004a20| 72 74 61 69 6e 20 74 6f | 20 74 68 65 20 22 63 75 |rtain to| the "cu|
|00004a30| 72 72 65 6e 74 22 20 77 | 69 6e 64 6f 77 2e 2a 2f |rrent" w|indow.*/|
|00004a40| 0d 0d 2f 2a 43 72 65 61 | 74 65 20 61 20 6e 65 77 |../*Crea|te a new|
|00004a50| 20 73 63 72 6f 6c 6c 20 | 62 61 72 2a 2f 0d 09 70 | scroll |bar*/..p|
|00004a60| 61 73 63 61 6c 20 76 6f | 69 64 20 4e 65 77 53 63 |ascal vo|id NewSc|
|00004a70| 72 6f 6c 6c 42 61 72 20 | 28 69 6e 74 20 53 63 72 |rollBar |(int Scr|
|00004a80| 6f 6c 6c 42 61 72 2c 09 | 09 09 09 09 2f 2a 53 63 |ollBar,.|..../*Sc|
|00004a90| 72 6f 6c 6c 20 62 61 72 | 20 6e 75 6d 62 65 72 09 |roll bar| number.|
|00004aa0| 09 09 09 09 09 09 09 2a | 2f 0d 09 09 09 09 09 09 |.......*|/.......|
|00004ab0| 09 09 09 69 6e 74 20 6c | 65 66 74 2c 09 09 09 09 |...int l|eft,....|
|00004ac0| 09 2f 2a 53 63 72 6f 6c | 6c 20 62 61 72 27 73 20 |./*Scrol|l bar's |
|00004ad0| 63 6f 2d 6f 72 64 69 6e | 61 74 65 73 20 28 6c 6f |co-ordin|ates (lo|
|00004ae0| 63 61 6c 29 09 09 09 09 | 2a 2f 0d 09 09 09 09 09 |cal)....|*/......|
|00004af0| 09 09 09 09 69 6e 74 20 | 74 6f 70 2c 09 09 09 09 |....int |top,....|
|00004b00| 09 2f 2a 09 09 09 09 09 | 09 09 09 09 09 09 09 2a |./*.....|.......*|
|00004b10| 2f 0d 09 09 09 09 09 09 | 09 09 09 69 6e 74 20 72 |/.......|...int r|
|00004b20| 69 67 68 74 2c 20 09 09 | 09 09 09 2f 2a 09 09 09 |ight, ..|.../*...|
|00004b30| 09 09 09 09 09 09 09 09 | 09 2a 2f 0d 09 09 09 09 |........|.*/.....|
|00004b40| 09 09 09 09 09 69 6e 74 | 20 62 6f 74 74 6f 6d 2c |.....int| bottom,|
|00004b50| 09 09 09 09 09 2f 2a 09 | 09 09 09 09 09 09 09 09 |...../*.|........|
|00004b60| 09 09 09 2a 2f 0d 09 09 | 09 09 09 09 09 09 09 42 |...*/...|.......B|
|00004b70| 6f 6f 6c 65 61 6e 20 45 | 6e 61 62 6c 65 64 46 6c |oolean E|nabledFl|
|00004b80| 61 67 2c 09 09 2f 2a 45 | 6e 61 62 6c 65 20 74 68 |ag,../*E|nable th|
|00004b90| 65 20 73 63 72 6f 6c 6c | 20 62 61 72 3f 09 09 09 |e scroll| bar?...|
|00004ba0| 09 09 09 2a 2f 0d 09 09 | 09 09 09 09 09 09 09 69 |...*/...|.......i|
|00004bb0| 6e 74 20 6d 69 6e 69 6d | 75 6d 2c 09 09 09 09 2f |nt minim|um,..../|
|00004bc0| 2a 4d 69 6e 69 6d 75 6d | 2c 20 63 75 72 72 65 6e |*Minimum|, curren|
|00004bd0| 74 2c 20 61 6e 64 20 6d | 61 78 69 6d 75 6d 20 76 |t, and m|aximum v|
|00004be0| 61 6c 75 65 09 09 09 2a | 2f 0d 09 09 09 09 09 09 |alue...*|/.......|
|00004bf0| 09 09 09 69 6e 74 20 76 | 61 6c 75 65 2c 09 09 09 |...int v|alue,...|
|00004c00| 09 09 2f 2a 09 09 09 09 | 09 09 09 09 09 09 09 09 |../*....|........|
|00004c10| 2a 2f 0d 09 09 09 09 09 | 09 09 09 09 69 6e 74 20 |*/......|....int |
|00004c20| 6d 61 78 69 6d 75 6d 29 | 3b 09 09 09 09 2f 2a 09 |maximum)|;..../*.|
|00004c30| 09 09 09 09 09 09 09 09 | 09 09 09 2a 2f 0d 0d 2f |........|...*/../|
|00004c40| 2a 43 72 65 61 74 65 20 | 61 20 6e 65 77 20 73 63 |*Create |a new sc|
|00004c50| 72 6f 6c 6c 20 62 61 72 | 20 28 63 6f 2d 6f 72 64 |roll bar| (co-ord|
|00004c60| 69 6e 61 74 65 73 20 73 | 70 65 63 69 66 69 65 64 |inates s|pecified|
|00004c70| 20 61 73 20 61 20 27 72 | 65 63 74 27 29 20 2a 2f | as a 'r|ect') */|
|00004c80| 0d 09 70 61 73 63 61 6c | 20 76 6f 69 64 20 4e 65 |..pascal| void Ne|
|00004c90| 77 53 63 72 6f 6c 6c 42 | 61 72 52 65 63 74 20 28 |wScrollB|arRect (|
|00004ca0| 69 6e 74 20 53 63 72 6f | 6c 6c 42 61 72 2c 09 09 |int Scro|llBar,..|
|00004cb0| 09 09 2f 2a 53 63 72 6f | 6c 6c 20 62 61 72 20 6e |../*Scro|ll bar n|
|00004cc0| 75 6d 62 65 72 09 09 09 | 09 09 09 09 09 2a 2f 0d |umber...|.....*/.|
|00004cd0| 09 09 09 09 09 09 09 09 | 09 52 65 63 74 20 2a 42 |........|.Rect *B|
|00004ce0| 6f 75 6e 64 73 2c 09 09 | 09 09 2f 2a 53 63 72 6f |ounds,..|../*Scro|
|00004cf0| 6c 6c 20 62 61 72 27 73 | 20 63 6f 2d 6f 72 64 69 |ll bar's| co-ordi|
|00004d00| 6e 61 74 65 73 20 28 6c | 6f 63 61 6c 29 09 09 09 |nates (l|ocal)...|
|00004d10| 09 2a 2f 0d 09 09 09 09 | 09 09 09 09 09 42 6f 6f |.*/.....|.....Boo|
|00004d20| 6c 65 61 6e 20 45 6e 61 | 62 6c 65 64 46 6c 61 67 |lean Ena|bledFlag|
|00004d30| 2c 09 09 2f 2a 45 6e 61 | 62 6c 65 20 74 68 65 20 |,../*Ena|ble the |
|00004d40| 73 63 72 6f 6c 6c 20 62 | 61 72 3f 09 09 09 09 09 |scroll b|ar?.....|
|00004d50| 09 2a 2f 0d 09 09 09 09 | 09 09 09 09 09 69 6e 74 |.*/.....|.....int|
|00004d60| 20 6d 69 6e 69 6d 75 6d | 2c 09 09 09 09 2f 2a 4d | minimum|,..../*M|
|00004d70| 69 6e 69 6d 75 6d 2c 20 | 63 75 72 72 65 6e 74 2c |inimum, |current,|
|00004d80| 20 61 6e 64 20 6d 61 78 | 69 6d 75 6d 20 76 61 6c | and max|imum val|
|00004d90| 75 65 09 09 09 2a 2f 0d | 09 09 09 09 09 09 09 09 |ue...*/.|........|
|00004da0| 09 69 6e 74 20 76 61 6c | 75 65 2c 09 09 09 09 09 |.int val|ue,.....|
|00004db0| 2f 2a 09 09 09 09 09 09 | 09 09 09 09 09 09 2a 2f |/*......|......*/|
|00004dc0| 0d 09 09 09 09 09 09 09 | 09 09 69 6e 74 20 6d 61 |........|..int ma|
|00004dd0| 78 69 6d 75 6d 29 3b 09 | 09 09 09 2f 2a 09 09 09 |ximum);.|.../*...|
|00004de0| 09 09 09 09 09 09 09 09 | 09 2a 2f 0d 0d 2f 2a 44 |........|.*/../*D|
|00004df0| 65 6c 65 74 65 20 61 20 | 73 63 72 6f 6c 6c 20 62 |elete a |scroll b|
|00004e00| 61 72 2a 2f 0d 09 70 61 | 73 63 61 6c 20 76 6f 69 |ar*/..pa|scal voi|
|00004e10| 64 20 44 65 6c 65 74 65 | 53 63 72 6f 6c 6c 42 61 |d Delete|ScrollBa|
|00004e20| 72 20 28 69 6e 74 20 53 | 63 72 6f 6c 6c 42 61 72 |r (int S|crollBar|
|00004e30| 29 3b 09 09 09 09 2f 2a | 53 63 72 6f 6c 6c 20 62 |);..../*|Scroll b|
|00004e40| 61 72 20 6e 75 6d 62 65 | 72 09 09 09 09 09 09 09 |ar numbe|r.......|
|00004e50| 09 2a 2f 0d 0d 2f 2a 45 | 6e 61 62 6c 65 2f 64 69 |.*/../*E|nable/di|
|00004e60| 73 61 62 6c 65 20 61 20 | 73 63 72 6f 6c 6c 20 62 |sable a |scroll b|
|00004e70| 61 72 2a 2f 0d 09 70 61 | 73 63 61 6c 20 76 6f 69 |ar*/..pa|scal voi|
|00004e80| 64 20 45 6e 61 62 6c 65 | 53 63 72 6f 6c 6c 42 61 |d Enable|ScrollBa|
|00004e90| 72 20 28 69 6e 74 20 53 | 63 72 6f 6c 6c 42 61 72 |r (int S|crollBar|
|00004ea0| 2c 09 09 09 09 09 2f 2a | 53 63 72 6f 6c 6c 20 62 |,...../*|Scroll b|
|00004eb0| 61 72 20 6e 75 6d 62 65 | 72 09 09 09 09 09 09 09 |ar numbe|r.......|
|00004ec0| 09 2a 2f 0d 09 09 09 09 | 09 09 09 09 09 42 6f 6f |.*/.....|.....Boo|
|00004ed0| 6c 65 61 6e 20 45 6e 61 | 62 6c 65 64 46 6c 61 67 |lean Ena|bledFlag|
|00004ee0| 29 3b 09 09 2f 2a 45 6e | 61 62 6c 65 20 74 68 65 |);../*En|able the|
|00004ef0| 20 73 63 72 6f 6c 6c 20 | 62 61 72 3f 09 09 09 09 | scroll |bar?....|
|00004f00| 09 09 2a 2f 0d 0d 2f 2a | 47 65 74 20 61 20 73 63 |..*/../*|Get a sc|
|00004f10| 72 6f 6c 6c 20 62 61 72 | 27 73 20 6d 69 6e 69 6d |roll bar|'s minim|
|00004f20| 75 6d 20 73 65 74 74 69 | 6e 67 2a 2f 0d 09 70 61 |um setti|ng*/..pa|
|00004f30| 73 63 61 6c 20 69 6e 74 | 20 47 65 74 53 63 72 6f |scal int| GetScro|
|00004f40| 6c 6c 42 61 72 4d 69 6e | 20 28 69 6e 74 20 53 63 |llBarMin| (int Sc|
|00004f50| 72 6f 6c 6c 42 61 72 09 | 09 09 09 09 2f 2a 53 63 |rollBar.|..../*Sc|
|00004f60| 72 6f 6c 6c 20 62 61 72 | 20 6e 75 6d 62 65 72 09 |roll bar| number.|
|00004f70| 09 09 09 09 09 09 09 2a | 2f 0d 09 09 09 09 09 09 |.......*|/.......|
|00004f80| 09 09 09 29 3b 09 09 09 | 09 09 09 09 2f 2a 53 63 |...);...|..../*Sc|
|00004f90| 72 6f 6c 6c 20 62 61 72 | 27 73 20 6d 69 6e 69 6d |roll bar|'s minim|
|00004fa0| 75 6d 20 73 65 74 74 69 | 6e 67 09 09 09 09 09 2a |um setti|ng.....*|
|00004fb0| 2f 0d 0d 2f 2a 53 65 74 | 20 61 20 73 63 72 6f 6c |/../*Set| a scrol|
|00004fc0| 6c 20 62 61 72 27 73 20 | 6d 69 6e 69 6d 75 6d 20 |l bar's |minimum |
|00004fd0| 73 65 74 74 69 6e 67 2a | 2f 0d 09 70 61 73 63 61 |setting*|/..pasca|
|00004fe0| 6c 20 76 6f 69 64 20 53 | 65 74 53 63 72 6f 6c 6c |l void S|etScroll|
|00004ff0| 42 61 72 4d 69 6e 20 28 | 69 6e 74 20 53 63 72 6f |BarMin (|int Scro|
|00005000| 6c 6c 42 61 72 2c 09 09 | 09 09 09 2f 2a 53 63 72 |llBar,..|.../*Scr|
|00005010| 6f 6c 6c 20 62 61 72 20 | 6e 75 6d 62 65 72 09 09 |oll bar |number..|
|00005020| 09 09 09 09 09 09 2a 2f | 0d 09 09 09 09 09 09 09 |......*/|........|
|00005030| 09 09 69 6e 74 20 6d 69 | 6e 69 6d 75 6d 29 3b 09 |..int mi|nimum);.|
|00005040| 09 09 09 2f 2a 53 63 72 | 6f 6c 6c 20 62 61 72 27 |.../*Scr|oll bar'|
|00005050| 73 20 6d 69 6e 69 6d 75 | 6d 20 73 65 74 74 69 6e |s minimu|m settin|
|00005060| 67 09 09 09 09 09 2a 2f | 0d 0d 2f 2a 47 65 74 20 |g.....*/|../*Get |
|00005070| 61 20 73 63 72 6f 6c 6c | 20 62 61 72 27 73 20 6d |a scroll| bar's m|
|00005080| 61 78 69 6d 75 6d 20 73 | 65 74 74 69 6e 67 2a 2f |aximum s|etting*/|
|00005090| 0d 09 70 61 73 63 61 6c | 20 69 6e 74 20 47 65 74 |..pascal| int Get|
|000050a0| 53 63 72 6f 6c 6c 42 61 | 72 4d 61 78 20 28 69 6e |ScrollBa|rMax (in|
|000050b0| 74 20 53 63 72 6f 6c 6c | 42 61 72 09 09 09 09 09 |t Scroll|Bar.....|
|000050c0| 2f 2a 53 63 72 6f 6c 6c | 20 62 61 72 20 6e 75 6d |/*Scroll| bar num|
|000050d0| 62 65 72 09 09 09 09 09 | 09 09 09 2a 2f 0d 09 09 |ber.....|...*/...|
|000050e0| 09 09 09 09 09 09 09 29 | 3b 09 09 09 09 09 09 09 |.......)|;.......|
|000050f0| 2f 2a 20 3d 20 53 63 72 | 6f 6c 6c 20 62 61 72 27 |/* = Scr|oll bar'|
|00005100| 73 20 6d 61 78 69 6d 75 | 6d 20 73 65 74 74 69 6e |s maximu|m settin|
|00005110| 67 09 09 09 09 2a 2f 0d | 0d 2f 2a 53 65 74 20 61 |g....*/.|./*Set a|
|00005120| 20 73 63 72 6f 6c 6c 20 | 62 61 72 27 73 20 6d 61 | scroll |bar's ma|
|00005130| 78 69 6d 75 6d 20 73 65 | 74 74 69 6e 67 2a 2f 0d |ximum se|tting*/.|
|00005140| 09 70 61 73 63 61 6c 20 | 76 6f 69 64 20 53 65 74 |.pascal |void Set|
|00005150| 53 63 72 6f 6c 6c 42 61 | 72 4d 61 78 20 28 69 6e |ScrollBa|rMax (in|
|00005160| 74 20 53 63 72 6f 6c 6c | 42 61 72 2c 09 09 09 09 |t Scroll|Bar,....|
|00005170| 09 2f 2a 53 63 72 6f 6c | 6c 20 62 61 72 20 6e 75 |./*Scrol|l bar nu|
|00005180| 6d 62 65 72 09 09 09 09 | 09 09 09 09 2a 2f 0d 09 |mber....|....*/..|
|00005190| 09 09 09 09 09 09 09 09 | 69 6e 74 20 6d 61 78 69 |........|int maxi|
|000051a0| 6d 75 6d 29 3b 09 09 09 | 09 2f 2a 53 63 72 6f 6c |mum);...|./*Scrol|
|000051b0| 6c 20 62 61 72 27 73 20 | 6d 61 78 69 6d 75 6d 20 |l bar's |maximum |
|000051c0| 73 65 74 74 69 6e 67 09 | 09 09 09 09 2a 2f 0d 0d |setting.|....*/..|
|000051d0| 2f 2a 47 65 74 20 61 20 | 73 63 72 6f 6c 6c 20 62 |/*Get a |scroll b|
|000051e0| 61 72 27 73 20 63 75 72 | 72 65 6e 74 20 76 61 6c |ar's cur|rent val|
|000051f0| 75 65 2a 2f 0d 09 70 61 | 73 63 61 6c 20 69 6e 74 |ue*/..pa|scal int|
|00005200| 20 47 65 74 53 63 72 6f | 6c 6c 42 61 72 56 61 6c | GetScro|llBarVal|
|00005210| 20 28 69 6e 74 20 53 63 | 72 6f 6c 6c 42 61 72 09 | (int Sc|rollBar.|
|00005220| 09 09 09 09 2f 2a 53 63 | 72 6f 6c 6c 20 62 61 72 |..../*Sc|roll bar|
|00005230| 20 6e 75 6d 62 65 72 09 | 09 09 09 09 09 09 09 2a | number.|.......*|
|00005240| 2f 0d 09 09 09 09 09 09 | 09 09 09 29 3b 20 09 09 |/.......|...); ..|
|00005250| 09 09 09 09 09 2f 2a 20 | 3d 20 53 63 72 6f 6c 6c |...../* |= Scroll|
|00005260| 20 62 61 72 27 73 20 63 | 75 72 72 65 6e 74 20 76 | bar's c|urrent v|
|00005270| 61 6c 75 65 09 09 09 09 | 09 2a 2f 0d 0d 2f 2a 53 |alue....|.*/../*S|
|00005280| 65 74 20 61 20 73 63 72 | 6f 6c 6c 20 62 61 72 27 |et a scr|oll bar'|
|00005290| 73 20 63 75 72 72 65 6e | 74 20 76 61 6c 75 65 2a |s curren|t value*|
|000052a0| 2f 0d 09 70 61 73 63 61 | 6c 20 76 6f 69 64 20 53 |/..pasca|l void S|
|000052b0| 65 74 53 63 72 6f 6c 6c | 42 61 72 56 61 6c 20 28 |etScroll|BarVal (|
|000052c0| 69 6e 74 20 53 63 72 6f | 6c 6c 42 61 72 2c 09 09 |int Scro|llBar,..|
|000052d0| 09 09 09 2f 2a 53 63 72 | 6f 6c 6c 20 62 61 72 20 |.../*Scr|oll bar |
|000052e0| 6e 75 6d 62 65 72 09 09 | 09 09 09 09 09 09 2a 2f |number..|......*/|
|000052f0| 0d 09 09 09 09 09 09 09 | 09 09 69 6e 74 20 76 61 |........|..int va|
|00005300| 6c 75 65 29 3b 09 09 09 | 09 09 2f 2a 53 63 72 6f |lue);...|../*Scro|
|00005310| 6c 6c 20 62 61 72 27 73 | 20 63 75 72 72 65 6e 74 |ll bar's| current|
|00005320| 20 76 61 6c 75 65 09 09 | 09 09 09 2a 2f 0d 0d 0d | value..|...*/...|
|00005330| 0d 2f 2a 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |./*=====|========|
|00005340| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005350| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 20 45 20 44 20 |========|=== E D |
|00005360| 49 20 54 20 49 20 4e 20 | 47 20 20 20 46 20 49 20 |I T I N |G F I |
|00005370| 45 20 4c 20 44 20 53 20 | 3d 3d 3d 3d 3d 3d 3d 3d |E L D S |========|
|00005380| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005390| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|000053a0| 09 2a 2f 0d 2f 2a 41 6c | 6c 20 73 63 72 6f 6c 6c |.*/./*Al|l scroll|
|000053b0| 20 62 61 72 20 6f 70 65 | 72 61 74 69 6f 6e 73 20 | bar ope|rations |
|000053c0| 70 65 72 74 61 69 6e 20 | 74 6f 20 74 68 65 20 22 |pertain |to the "|
|000053d0| 63 75 72 72 65 6e 74 22 | 20 77 69 6e 64 6f 77 2e |current"| window.|
|000053e0| 2a 2f 0d 0d 2f 2a 43 72 | 65 61 74 65 20 61 20 6e |*/../*Cr|eate a n|
|000053f0| 65 77 20 66 69 65 6c 64 | 2a 2f 0d 09 70 61 73 63 |ew field|*/..pasc|
|00005400| 61 6c 20 76 6f 69 64 20 | 4e 65 77 46 69 65 6c 64 |al void |NewField|
|00005410| 20 28 69 6e 74 20 46 69 | 65 6c 64 2c 09 09 09 09 | (int Fi|eld,....|
|00005420| 09 09 09 2f 2a 46 69 65 | 6c 64 20 6e 75 6d 62 65 |.../*Fie|ld numbe|
|00005430| 72 09 09 09 09 09 09 09 | 09 09 2a 2f 0d 09 09 09 |r.......|..*/....|
|00005440| 09 09 09 09 09 09 69 6e | 74 20 6c 65 66 74 2c 20 |......in|t left, |
|00005450| 09 09 09 09 09 2f 2a 46 | 69 65 6c 64 27 73 20 76 |...../*F|ield's v|
|00005460| 69 65 77 69 6e 67 20 61 | 72 65 61 20 63 6f 2d 6f |iewing a|rea co-o|
|00005470| 72 64 69 6e 61 74 65 73 | 20 28 6c 6f 63 61 6c 29 |rdinates| (local)|
|00005480| 09 09 2a 2f 0d 09 09 09 | 09 09 09 09 09 09 69 6e |..*/....|......in|
|00005490| 74 20 74 6f 70 2c 09 09 | 09 09 09 2f 2a 09 09 09 |t top,..|.../*...|
|000054a0| 09 09 09 09 09 09 09 09 | 09 2a 2f 0d 09 09 09 09 |........|.*/.....|
|000054b0| 09 09 09 09 09 69 6e 74 | 20 72 69 67 68 74 2c 09 |.....int| right,.|
|000054c0| 09 09 09 09 2f 2a 09 09 | 09 09 09 09 09 09 09 09 |..../*..|........|
|000054d0| 09 09 2a 2f 0d 09 09 09 | 09 09 09 09 09 09 69 6e |..*/....|......in|
|000054e0| 74 20 62 6f 74 74 6f 6d | 2c 09 09 09 09 09 2f 2a |t bottom|,...../*|
|000054f0| 09 09 09 09 09 09 09 09 | 09 09 09 09 2a 2f 0d 09 |........|....*/..|
|00005500| 09 09 09 09 09 09 09 09 | 48 61 6e 64 6c 65 20 68 |........|Handle h|
|00005510| 53 74 72 2c 09 09 09 09 | 2f 2a 48 61 6e 64 6c 65 |Str,....|/*Handle|
|00005520| 20 74 6f 20 65 64 69 74 | 20 66 69 65 6c 64 27 73 | to edit| field's|
|00005530| 20 74 65 78 74 09 09 09 | 09 09 2a 2f 0d 09 09 09 | text...|..*/....|
|00005540| 09 09 09 09 09 09 69 6e | 74 20 74 65 54 79 70 65 |......in|t teType|
|00005550| 2c 09 09 09 09 09 2f 2a | 54 79 70 65 3a 20 62 6f |,...../*|Type: bo|
|00005560| 78 20 61 72 6f 75 6e 64 | 20 66 69 65 6c 64 20 61 |x around| field a|
|00005570| 6e 64 2f 6f 72 20 43 52 | 20 61 6c 6c 6f 77 65 64 |nd/or CR| allowed|
|00005580| 3f 09 09 2a 2f 0d 09 09 | 09 09 09 09 09 09 09 69 |?..*/...|.......i|
|00005590| 6e 74 20 4a 75 73 74 29 | 3b 09 09 09 09 09 2f 2a |nt Just)|;...../*|
|000055a0| 4a 75 73 74 69 66 69 63 | 61 74 69 6f 6e 3a 20 6c |Justific|ation: l|
|000055b0| 65 66 74 2c 20 63 65 6e | 74 72 65 2c 20 72 69 67 |eft, cen|tre, rig|
|000055c0| 68 74 09 09 09 09 2a 2f | 0d 0d 2f 2a 43 72 65 61 |ht....*/|../*Crea|
|000055d0| 74 65 20 61 20 6e 65 77 | 20 66 69 65 6c 64 20 28 |te a new| field (|
|000055e0| 63 6f 2d 6f 72 64 69 6e | 61 74 65 73 20 73 70 65 |co-ordin|ates spe|
|000055f0| 63 69 66 69 65 64 20 61 | 73 20 61 20 27 72 65 63 |cified a|s a 'rec|
|00005600| 74 27 29 20 2a 2f 0d 09 | 70 61 73 63 61 6c 20 76 |t') */..|pascal v|
|00005610| 6f 69 64 20 4e 65 77 46 | 69 65 6c 64 52 65 63 74 |oid NewF|ieldRect|
|00005620| 20 28 69 6e 74 20 46 69 | 65 6c 64 2c 09 09 09 09 | (int Fi|eld,....|
|00005630| 09 09 2f 2a 46 69 65 6c | 64 20 6e 75 6d 62 65 72 |../*Fiel|d number|
|00005640| 09 09 09 09 09 09 09 09 | 09 2a 2f 0d 09 09 09 09 |........|.*/.....|
|00005650| 09 09 09 09 09 52 65 63 | 74 20 2a 42 6f 75 6e 64 |.....Rec|t *Bound|
|00005660| 73 2c 20 09 09 09 09 2f | 2a 46 69 65 6c 64 27 73 |s, ..../|*Field's|
|00005670| 20 76 69 65 77 69 6e 67 | 20 61 72 65 61 20 63 6f | viewing| area co|
|00005680| 2d 6f 72 64 69 6e 61 74 | 65 73 20 28 6c 6f 63 61 |-ordinat|es (loca|
|00005690| 6c 29 09 09 2a 2f 0d 09 | 09 09 09 09 09 09 09 09 |l)..*/..|........|
|000056a0| 48 61 6e 64 6c 65 20 68 | 53 74 72 2c 09 09 09 09 |Handle h|Str,....|
|000056b0| 2f 2a 48 61 6e 64 6c 65 | 20 74 6f 20 65 64 69 74 |/*Handle| to edit|
|000056c0| 20 66 69 65 6c 64 27 73 | 20 74 65 78 74 09 09 09 | field's| text...|
|000056d0| 09 09 2a 2f 0d 09 09 09 | 09 09 09 09 09 09 69 6e |..*/....|......in|
|000056e0| 74 20 74 65 54 79 70 65 | 2c 09 09 09 09 09 2f 2a |t teType|,...../*|
|000056f0| 54 79 70 65 3a 20 62 6f | 78 20 61 72 6f 75 6e 64 |Type: bo|x around|
|00005700| 20 66 69 65 6c 64 20 61 | 6e 64 2f 6f 72 20 43 52 | field a|nd/or CR|
|00005710| 20 61 6c 6c 6f 77 65 64 | 3f 09 09 2a 2f 0d 09 09 | allowed|?..*/...|
|00005720| 09 09 09 09 09 09 09 69 | 6e 74 20 4a 75 73 74 29 |.......i|nt Just)|
|00005730| 3b 09 09 09 09 09 2f 2a | 4a 75 73 74 69 66 69 63 |;...../*|Justific|
|00005740| 61 74 69 6f 6e 3a 20 6c | 65 66 74 2c 20 63 65 6e |ation: l|eft, cen|
|00005750| 74 72 65 2c 20 72 69 67 | 68 74 09 09 09 2a 2f 0d |tre, rig|ht...*/.|
|00005760| 0d 2f 2a 44 65 6c 65 74 | 65 20 61 20 66 69 65 6c |./*Delet|e a fiel|
|00005770| 64 2a 2f 0d 09 70 61 73 | 63 61 6c 20 76 6f 69 64 |d*/..pas|cal void|
|00005780| 20 44 65 6c 65 74 65 46 | 69 65 6c 64 20 28 69 6e | DeleteF|ield (in|
|00005790| 74 20 46 69 65 6c 64 29 | 3b 09 09 09 09 09 09 2f |t Field)|;....../|
|000057a0| 2a 46 69 65 6c 64 20 6e | 75 6d 62 65 72 09 09 09 |*Field n|umber...|
|000057b0| 09 09 09 09 09 09 2a 2f | 0d 0d 2f 2a 41 63 74 69 |......*/|../*Acti|
|000057c0| 76 61 74 65 20 61 20 20 | 66 69 65 6c 64 2a 2f 0d |vate a |field*/.|
|000057d0| 09 70 61 73 63 61 6c 20 | 76 6f 69 64 20 41 63 74 |.pascal |void Act|
|000057e0| 69 76 61 74 65 46 69 65 | 6c 64 20 28 69 6e 74 20 |ivateFie|ld (int |
|000057f0| 46 69 65 6c 64 2c 09 09 | 09 09 09 09 2f 2a 46 69 |Field,..|..../*Fi|
|00005800| 65 6c 64 20 6e 75 6d 62 | 65 72 09 09 09 09 09 09 |eld numb|er......|
|00005810| 09 09 09 2a 2f 0d 09 09 | 09 09 09 09 09 09 09 69 |...*/...|.......i|
|00005820| 6e 74 20 53 65 6c 65 63 | 74 69 6f 6e 29 3b 09 09 |nt Selec|tion);..|
|00005830| 09 09 2f 2a 54 65 78 74 | 20 73 65 6c 65 63 74 69 |../*Text| selecti|
|00005840| 6f 6e 3a 20 61 6c 6c 2c | 20 73 74 61 72 74 2c 20 |on: all,| start, |
|00005850| 65 6e 64 09 09 09 09 2a | 2f 0d 0d 2f 2a 44 65 61 |end....*|/../*Dea|
|00005860| 63 74 69 76 61 74 65 20 | 74 68 65 20 61 63 74 69 |ctivate |the acti|
|00005870| 76 65 20 66 69 65 6c 64 | 2a 2f 0d 09 70 61 73 63 |ve field|*/..pasc|
|00005880| 61 6c 20 76 6f 69 64 20 | 44 65 61 63 74 69 76 61 |al void |Deactiva|
|00005890| 74 65 46 69 65 6c 64 28 | 76 6f 69 64 29 3b 0d 0d |teField(|void);..|
|000058a0| 2f 2a 50 72 6f 63 65 73 | 73 20 61 20 6d 6f 75 73 |/*Proces|s a mous|
|000058b0| 65 20 63 6c 69 63 6b 20 | 69 6e 20 61 6e 20 69 6e |e click |in an in|
|000058c0| 61 63 74 69 76 65 20 66 | 69 65 6c 64 2e 20 20 54 |active f|ield. T|
|000058d0| 68 65 20 63 6c 69 63 6b | 20 68 61 73 20 62 65 65 |he click| has bee|
|000058e0| 6e 20 64 65 74 65 63 74 | 65 64 20 62 79 20 74 68 |n detect|ed by th|
|000058f0| 65 20 50 6f 6c 6c 53 79 | 73 74 65 6d 20 72 6f 75 |e PollSy|stem rou|
|00005900| 74 69 6e 65 2e 2a 2f 0d | 09 70 61 73 63 61 6c 20 |tine.*/.|.pascal |
|00005910| 76 6f 69 64 20 43 6c 69 | 63 6b 49 6e 46 69 65 6c |void Cli|ckInFiel|
|00005920| 64 28 76 6f 69 64 29 3b | 0d 0d 2f 2a 47 65 74 20 |d(void);|../*Get |
|00005930| 74 68 65 20 61 63 74 69 | 76 65 20 66 69 65 6c 64 |the acti|ve field|
|00005940| 27 73 20 65 64 69 74 65 | 64 20 74 65 78 74 2a 2f |'s edite|d text*/|
|00005950| 0d 09 70 61 73 63 61 6c | 20 76 6f 69 64 20 47 65 |..pascal| void Ge|
|00005960| 74 46 69 65 6c 64 53 74 | 72 69 6e 67 20 28 53 74 |tFieldSt|ring (St|
|00005970| 72 32 35 35 20 2a 45 64 | 69 74 53 74 72 69 6e 67 |r255 *Ed|itString|
|00005980| 29 3b 09 09 09 2f 2a 46 | 69 65 6c 64 27 73 20 65 |);.../*F|ield's e|
|00005990| 64 69 74 65 64 20 74 65 | 78 74 09 09 09 09 09 09 |dited te|xt......|
|000059a0| 09 2a 2f 0d 0d 2f 2a 53 | 61 76 65 20 74 68 65 20 |.*/../*S|ave the |
|000059b0| 61 63 74 69 76 65 20 66 | 69 65 6c 64 27 73 20 65 |active f|ield's e|
|000059c0| 64 69 74 65 64 20 74 65 | 78 74 20 69 6e 20 74 68 |dited te|xt in th|
|000059d0| 65 20 66 69 65 6c 64 27 | 73 20 73 74 72 69 6e 67 |e field'|s string|
|000059e0| 2a 2f 0d 09 70 61 73 63 | 61 6c 20 76 6f 69 64 20 |*/..pasc|al void |
|000059f0| 53 61 76 65 46 69 65 6c | 64 53 74 72 69 6e 67 28 |SaveFiel|dString(|
|00005a00| 76 6f 69 64 29 3b 0d 0d | 2f 2a 44 65 74 65 72 6d |void);..|/*Determ|
|00005a10| 69 6e 65 20 74 68 65 20 | 61 63 74 69 76 65 20 66 |ine the |active f|
|00005a20| 69 65 6c 64 20 6e 75 6d | 62 65 72 2a 2f 0d 09 70 |ield num|ber*/..p|
|00005a30| 61 73 63 61 6c 20 69 6e | 74 20 41 63 74 69 76 65 |ascal in|t Active|
|00005a40| 46 69 65 6c 64 4e 75 6d | 62 65 72 28 76 6f 69 64 |FieldNum|ber(void|
|00005a50| 29 3b 09 09 09 09 09 09 | 09 2f 2a 41 63 74 69 76 |);......|./*Activ|
|00005a60| 65 20 66 69 65 6c 64 20 | 6e 75 6d 62 65 72 09 09 |e field |number..|
|00005a70| 09 09 09 09 09 2a 2f 0d | 0d 2f 2a 54 75 72 6e 20 |.....*/.|./*Turn |
|00005a80| 73 74 72 69 6e 67 20 6c | 65 6e 67 74 68 20 6c 69 |string l|ength li|
|00005a90| 6d 69 74 69 6e 67 20 6f | 6e 2f 6f 66 66 20 66 6f |miting o|n/off fo|
|00005aa0| 72 20 65 61 63 68 20 6e | 65 77 20 66 69 65 6c 64 |r each n|ew field|
|00005ab0| 20 63 72 65 61 74 65 64 | 20 73 74 61 72 74 69 6e | created| startin|
|00005ac0| 67 20 6e 6f 77 2a 2f 0d | 09 70 61 73 63 61 6c 20 |g now*/.|.pascal |
|00005ad0| 76 6f 69 64 20 46 69 65 | 6c 64 4c 65 6e 67 74 68 |void Fie|ldLength|
|00005ae0| 4c 69 6d 69 74 20 28 42 | 6f 6f 6c 65 61 6e 20 4c |Limit (B|oolean L|
|00005af0| 69 6d 69 74 73 29 3b 09 | 09 09 09 2f 2a 53 68 6f |imits);.|.../*Sho|
|00005b00| 75 6c 64 20 6e 65 77 6c | 79 20 63 72 65 61 74 65 |uld newl|y create|
|00005b10| 64 20 66 69 65 6c 64 73 | 20 62 65 20 6c 65 6e 67 |d fields| be leng|
|00005b20| 74 68 2d 6c 69 6d 69 74 | 65 64 3f 2a 2f 0d 0d 2f |th-limit|ed?*/../|
|00005b30| 2a 4f 66 66 73 65 74 20 | 61 20 66 69 65 6c 64 2a |*Offset |a field*|
|00005b40| 2f 0d 09 70 61 73 63 61 | 6c 20 76 6f 69 64 20 4f |/..pasca|l void O|
|00005b50| 66 66 73 65 74 46 69 65 | 6c 64 20 28 69 6e 74 20 |ffsetFie|ld (int |
|00005b60| 46 69 65 6c 64 2c 09 09 | 09 09 09 09 09 2f 2a 46 |Field,..|...../*F|
|00005b70| 69 65 6c 64 20 6e 75 6d | 62 65 72 09 09 09 09 09 |ield num|ber.....|
|00005b80| 09 09 09 09 2a 2f 0d 09 | 09 09 09 09 09 09 09 09 |....*/..|........|
|00005b90| 69 6e 74 20 64 68 2c 20 | 69 6e 74 20 64 76 29 3b |int dh, |int dv);|
|00005ba0| 09 09 09 2f 2a 4e 75 6d | 62 65 72 20 6f 66 20 70 |.../*Num|ber of p|
|00005bb0| 69 78 65 6c 73 20 74 6f | 20 62 65 20 6f 66 66 73 |ixels to| be offs|
|00005bc0| 65 74 20 28 68 6f 72 69 | 7a 2f 76 65 72 74 29 09 |et (hori|z/vert).|
|00005bd0| 2a 2f 0d 0d 2f 2a 50 61 | 73 74 65 20 74 65 78 74 |*/../*Pa|ste text|
|00005be0| 20 69 6e 74 6f 20 61 20 | 66 69 65 6c 64 2a 2f 0d | into a |field*/.|
|00005bf0| 09 70 61 73 63 61 6c 20 | 76 6f 69 64 20 50 61 73 |.pascal |void Pas|
|00005c00| 74 65 49 6e 74 6f 46 69 | 65 6c 64 20 28 69 6e 74 |teIntoFi|eld (int|
|00005c10| 20 46 69 65 6c 64 2c 09 | 09 09 09 09 09 2f 2a 46 | Field,.|...../*F|
|00005c20| 69 65 6c 64 20 6e 75 6d | 62 65 72 09 09 09 09 09 |ield num|ber.....|
|00005c30| 09 09 09 09 2a 2f 0d 09 | 09 09 09 09 09 09 09 09 |....*/..|........|
|00005c40| 53 74 72 32 35 35 20 54 | 65 78 74 2c 09 09 09 09 |Str255 T|ext,....|
|00005c50| 2f 2a 54 65 78 74 20 77 | 68 69 63 68 20 69 73 20 |/*Text w|hich is |
|00005c60| 74 6f 20 62 65 20 70 61 | 73 74 65 64 09 09 09 09 |to be pa|sted....|
|00005c70| 09 2a 2f 0d 09 09 09 09 | 09 09 09 09 09 42 6f 6f |.*/.....|.....Boo|
|00005c80| 6c 65 61 6e 20 52 65 70 | 6c 61 63 65 29 3b 09 09 |lean Rep|lace);..|
|00005c90| 09 2f 2a 52 65 70 6c 61 | 63 65 20 61 6c 6c 20 65 |./*Repla|ce all e|
|00005ca0| 78 69 73 74 69 6e 67 20 | 74 65 78 74 20 69 6e 20 |xisting |text in |
|00005cb0| 66 69 65 6c 64 3f 09 09 | 09 2a 2f 0d 0d 0d 0d 2f |field?..|.*/..../|
|00005cc0| 2a 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |*=======|========|
|00005cd0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005ce0| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 20 4c 20 |========|===== L |
|00005cf0| 49 20 53 20 54 20 20 20 | 42 20 4f 20 58 20 45 20 |I S T |B O X E |
|00005d00| 53 20 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |S ======|========|
|00005d10| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 3d 3d |========|========|
|00005d20| 3d 3d 3d 3d 3d 3d 3d 3d | 3d 3d 3d 3d 3d 3d 09 2a |========|======.*|
|00005d30| 2f 0d 2f 2a 41 6c 6c 20 | 6c 69 73 74 20 62 6f 78 |/./*All |list box|
|00005d40| 20 6f 70 65 72 61 74 69 | 6f 6e 73 20 70 65 72 74 | operati|ons pert|
|00005d50| 61 69 6e 20 74 6f 20 74 | 68 65 20 22 63 75 72 72 |ain to t|he "curr|
|00005d60| 65 6e 74 22 20 77 69 6e | 64 6f 77 2e 2a 2f 0d 0d |ent" win|dow.*/..|
|00005d70| 2f 2a 43 72 65 61 74 65 | 20 61 20 6e 65 77 20 4c |/*Create| a new L|
|00005d80| 69 73 74 20 42 6f 78 2a | 2f 0d 09 70 61 73 63 61 |ist Box*|/..pasca|
|00005d90| 6c 20 76 6f 69 64 20 4e | 65 77 4c 69 73 74 42 6f |l void N|ewListBo|
|00005da0| 78 20 28 69 6e 74 20 4c | 69 73 74 42 6f 78 2c 09 |x (int L|istBox,.|
|00005db0| 09 09 09 09 09 2f 2a 4c | 69 73 74 20 62 6f 78 20 |...../*L|ist box |
|00005dc0| 6e 75 6d 62 65 72 09 09 | 09 09 09 09 09 09 2a 2f |number..|......*/|
|00005dd0| 0d 09 09 09 09 09 09 09 | 09 09 69 6e 74 20 6c 65 |........|..int le|
|00005de0| 66 74 2c 09 09 09 09 09 | 2f 2a 4c 69 73 74 20 62 |ft,.....|/*List b|
|00005df0| 6f 78 20 63 6f 2d 6f 72 | 64 69 6e 61 74 65 73 20 |ox co-or|dinates |
|00005e00| 28 6c 6f 63 61 6c 29 09 | 09 09 09 09 2a 2f 0d 09 |(local).|....*/..|
|00005e10| 09 09 09 09 09 09 09 09 | 69 6e 74 20 74 6f 70 2c |........|int top,|
|00005e20| 09 09 09 09 09 2f 2a 09 | 09 09 09 09 09 09 09 09 |...../*.|........|
|00005e30| 09 09 09 2a 2f 0d 09 09 | 09 09 09 09 09 09 09 69 |...*/...|.......i|
|00005e40| 6e 74 20 72 69 67 68 74 | 2c 09 09 09 09 09 2f 2a |nt right|,...../*|
|00005e50| 09 09 09 09 09 09 09 09 | 09 09 09 09 2a 2f 0d 09 |........|....*/..|
|00005e60| 09 09 09 09 09 09 09 09 | 69 6e 74 20 62 6f 74 74 |........|int bott|
|00005e70| 6f 6d 2c 09 09 09 09 09 | 2f 2a 09 09 09 09 09 09 |om,.....|/*......|
|00005e80| 09 09 09 09 09 09 2a 2f | 09 09 09 09 09 09 0d 09 |......*/|........|
|00005e90| 09 09 09 09 09 09 09 09 | 53 69 67 6e 65 64 42 79 |........|SignedBy|
|00005ea0| 74 65 20 42 6f 78 54 79 | 70 65 29 3b 09 09 2f 2a |te BoxTy|pe);../*|
|00005eb0| 54 79 70 65 20 6f 66 20 | 72 65 73 70 6f 6e 73 65 |Type of |response|
|00005ec0| 73 20 74 6f 20 6d 6f 75 | 73 65 20 63 6c 69 63 6b |s to mou|se click|
|00005ed0| 73 2c 20 73 68 69 66 74 | 2d 09 09 2a 2f 0d 09 09 |s, shift|-..*/...|
|00005ee0| 09 09 09 09 09 09 09 09 | 09 09 09 09 09 09 2f 2a |........|....../*|
|00005ef0| 09 63 6c 69 63 6b 2c 20 | 64 72 61 67 67 69 6e 67 |.click, |dragging|
|00005f00| 2c 20 65 74 63 2e 09 09 | 09 09 09 09 2a 2f 0d 0d |, etc...|....*/..|
|00005f10| 2f 2a 43 72 65 61 74 65 | 20 61 20 6e 65 77 20 4c |/*Create| a new L|
|00005f20| 69 73 74 20 42 6f 78 20 | 28 63 6f 2d 6f 72 64 69 |ist Box |(co-ordi|
|00005f30| 6e 61 74 65 73 20 73 70 | 65 63 69 66 69 65 64 20 |nates sp|ecified |
|00005f40| 61 73 20 61 20 27 72 65 | 63 74 27 29 20 2a 2f 0d |as a 're|ct') */.|
|00005f50| 09 70 61 73 63 61 6c 20 | 76 6f 69 64 20 4e 65 77 |.pascal |void New|
|00005f60| 4c 69 73 74 42 6f 78 52 | 65 63 74 20 28 69 6e 74 |ListBoxR|ect (int|
|00005f70| 20 4c 69 73 74 42 6f 78 | 2c 09 09 09 09 09 2f 2a | ListBox|,...../*|
|00005f80| 4c 69 73 74 20 62 6f 78 | 20 6e 75 6d 62 65 72 09 |List box| number.|
|00005f90| 09 09 09 09 09 09 09 2a | 2f 0d 09 09 09 09 09 09 |.......*|/.......|
|00005fa0| 09 09 09 52 65 63 74 20 | 2a 42 6f 75 6e 64 73 2c |...Rect |*Bounds,|
|00005fb0| 09 09 09 09 2f 2a 4c 69 | 73 74 20 62 6f 78 20 63 |..../*Li|st box c|
|00005fc0| 6f 2d 6f 72 64 69 6e 61 | 74 65 73 20 28 6c 6f 63 |o-ordina|tes (loc|
|00005fd0| 61 6c 29 09 09 09 09 09 | 2a 2f 0d 09 09 09 09 09 |al).....|*/......|
|00005fe0| 09 09 09 09 53 69 67 6e | 65 64 42 79 74 65 20 42 |....Sign|edByte B|
|00005ff0| 6f 78 54 79 70 65 29 3b | 09 09 2f 2a 54 79 70 65 |oxType);|../*Type|
|00006000| 20 6f 66 20 72 65 73 70 | 6f 6e 73 65 73 20 74 6f | of resp|onses to|
|00006010| 20 6d 6f 75 73 65 20 63 | 6c 69 63 6b 73 2c 20 73 | mouse c|licks, s|
|00006020| 68 69 66 74 2d 09 09 2a | 2f 0d 09 09 09 09 09 09 |hift-..*|/.......|
|00006030| 09 09 09 09 09 09 09 09 | 09 09 2f 2a 09 63 6c 69 |........|../*.cli|
|00006040| 63 6b 2c 20 64 72 61 67 | 67 69 6e 67 2c 20 65 74 |ck, drag|ging, et|
|00006050| 63 2e 09 09 09 09 09 09 | 2a 2f 0d 0d 2f 2a 44 65 |c.......|*/../*De|
|00006060| 6c 65 74 65 20 61 20 4c | 69 73 74 20 42 6f 78 2a |lete a L|ist Box*|
|00006070| 2f 0d 09 70 61 73 63 61 | 6c 20 76 6f 69 64 20 44 |/..pasca|l void D|
|00006080| 65 6c 65 74 65 4c 69 73 | 74 42 6f 78 20 28 69 6e |eleteLis|tBox (in|
|00006090| 74 20 4c 69 73 74 42 6f | 78 29 3b 09 09 09 09 09 |t ListBo|x);.....|
|000060a0| 2f 2a 4c 69 73 74 20 62 | 6f 78 20 6e 75 6d 62 65 |/*List b|ox numbe|
|000060b0| 72 09 09 09 09 09 09 09 | 09 2a 2f 0d 0d 2f 2a 53 |r.......|.*/../*S|
|000060c0| 65 74 20 61 20 6c 69 6e | 65 20 6f 66 20 74 65 78 |et a lin|e of tex|
|000060d0| 74 20 69 6e 20 61 20 4c | 69 73 74 20 42 6f 78 2a |t in a L|ist Box*|
|000060e0| 2f 0d 09 70 61 73 63 61 | 6c 20 76 6f 69 64 20 53 |/..pasca|l void S|
|000060f0| 65 74 4c 69 73 74 42 6f | 78 54 65 78 74 20 28 69 |etListBo|xText (i|
|00006100| 6e 74 20 4c 69 73 74 42 | 6f 78 2c 09 09 09 09 09 |nt ListB|ox,.....|
|00006110| 2f 2a 4c 69 73 74 20 62 | 6f 78 20 6e 75 6d 62 65 |/*List b|ox numbe|
|00006120| 72 09 09 09 09 09 09 09 | 09 2a 2f 0d 09 09 09 09 |r.......|.*/.....|
|00006130| 09 09 09 09 09 69 6e 74 | 20 4c 69 6e 65 4e 75 6d |.....int| LineNum|
|00006140| 2c 09 09 09 09 2f 2a 4c | 69 6e 65 20 6e 75 6d 62 |,..../*L|ine numb|
|00006150| 65 72 09 09 09 09 09 09 | 09 09 09 2a 2f 0d 09 09 |er......|...*/...|
|00006160| 09 09 09 09 09 09 09 53 | 74 72 32 35 35 20 54 65 |.......S|tr255 Te|
|00006170| 78 74 29 3b 09 09 09 09 | 2f 2a 54 65 78 74 20 6f |xt);....|/*Text o|
|00006180| 66 20 73 70 65 63 69 66 | 69 65 64 20 6c 69 6e 65 |f specif|ied line|
|00006190| 20 6e 75 6d 62 65 72 09 | 09 09 09 09 2a 2f 0d 0d | number.|....*/..|
|000061a0| 2f 2a 47 65 74 20 61 20 | 6c 69 6e 65 20 6f 66 20 |/*Get a |line of |
|000061b0| 74 65 78 74 20 66 72 6f | 6d 20 61 20 4c 69 73 74 |text fro|m a List|
|000061c0| 20 42 6f 78 2a 2f 0d 09 | 70 61 73 63 61 6c 20 76 | Box*/..|pascal v|
|000061d0| 6f 69 64 20 47 65 74 4c | 69 73 74 42 6f 78 54 65 |oid GetL|istBoxTe|
|000061e0| 78 74 20 28 69 6e 74 20 | 4c 69 73 74 42 6f 78 2c |xt (int |ListBox,|
|000061f0| 09 09 09 09 09 2f 2a 4c | 69 73 74 20 62 6f 78 20 |...../*L|ist box |
|00006200| 6e 75 6d 62 65 72 09 09 | 09 09 09 09 09 09 2a 2f |number..|......*/|
|00006210| 0d 09 09 09 09 09 09 09 | 09 09 69 6e 74 20 4c 69 |........|..int Li|
|00006220| 6e 65 4e 75 6d 2c 09 09 | 09 09 2f 2a 4c 69 6e 65 |neNum,..|../*Line|
|00006230| 20 6e 75 6d 62 65 72 09 | 09 09 09 09 09 09 09 09 | number.|........|
|00006240| 2a 2f 0d 09 09 09 09 09 | 09 09 09 09 53 74 72 32 |*/......|....Str2|
|00006250| 35 35 20 2a 54 65 78 74 | 29 3b 09 09 09 09 2f 2a |55 *Text|);..../*|
|00006260| 54 65 78 74 20 6f 66 20 | 73 70 65 63 69 66 69 65 |Text of |specifie|
|00006270| 64 20 6c 69 6e 65 20 6e | 75 6d 62 65 72 09 09 09 |d line n|umber...|
|00006280| 09 09 2a 2f 0d 0d 2f 2a | 47 65 74 20 61 20 4c 69 |..*/../*|Get a Li|
|00006290| 73 74 20 42 6f 78 27 73 | 20 6c 69 6e 65 20 6e 75 |st Box's| line nu|
|000062a0| 6d 62 65 72 20 77 68 6f | 73 65 20 74 65 78 74 20 |mber who|se text |
|000062b0| 69 73 20 67 72 65 61 74 | 65 72 20 74 68 61 6e 20 |is great|er than |
|000062c0| 6f 72 20 65 71 75 61 6c | 20 74 6f 20 74 68 65 20 |or equal| to the |
|000062d0| 73 70 65 63 69 66 69 65 | 64 20 73 74 72 69 6e 67 |specifie|d string|
|000062e0| 2a 2f 0d 09 70 61 73 63 | 61 6c 20 69 6e 74 20 53 |*/..pasc|al int S|
|000062f0| 65 61 72 63 68 4c 69 73 | 74 42 6f 78 20 28 69 6e |earchLis|tBox (in|
|00006300| 74 20 4c 69 73 74 42 6f | 78 2c 09 09 09 09 09 09 |t ListBo|x,......|
|00006310| 2f 2a 4c 69 73 74 20 62 | 6f 78 20 6e 75 6d 62 65 |/*List b|ox numbe|
|00006320| 72 09 09 09 09 09 09 09 | 09 2a 2f 0d 09 09 09 09 |r.......|.*/.....|
|00006330| 09 09 09 09 09 53 74 72 | 32 35 35 20 54 65 78 74 |.....Str|255 Text|
|00006340| 09 09 09 09 09 2f 2a 54 | 65 78 74 20 62 65 69 6e |...../*T|ext bein|
|00006350| 67 20 63 6f 6d 70 61 72 | 65 64 09 09 09 09 09 09 |g compar|ed......|
|00006360| 09 2a 2f 0d 09 09 09 09 | 09 09 09 09 09 29 3b 09 |.*/.....|.....);.|
|00006370| 09 09 09 09 09 09 2f 2a | 20 3d 20 4c 69 6e 65 20 |....../*| = Line |
|00006380| 6e 75 6d 62 65 72 20 6f | 66 20 74 65 78 74 09 09 |number o|f text..|
|00006390| 09 09 09 09 2a 2f 0d 0d | 2f 2a 53 65 6c 65 63 74 |....*/..|/*Select|
|000063a0| 2f 64 65 73 65 6c 65 63 | 74 20 61 20 73 70 65 63 |/deselec|t a spec|
|000063b0| 69 66 69 65 64 20 4c 69 | 73 74 20 42 6f 78 20 6c |ified Li|st Box l|
|000063c0| 69 6e 65 2a 2f 0d 09 70 | 61 73 63 61 6c 20 76 6f |ine*/..p|ascal vo|
|000063d0| 69 64 20 53 65 74 4c 69 | 73 74 42 6f 78 4c 69 6e |id SetLi|stBoxLin|
|000063e0| 65 20 28 69 6e 74 20 4c | 69 73 74 42 6f 78 2c 09 |e (int L|istBox,.|
|000063f0| 09 09 09 09 2f 2a 4c 69 | 73 74 20 62 6f 78 20 6e |..../*Li|st box n|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.